Re: System Wide Hook to Center Dialog Windows - Help
- From: Tom Esh <tjeshGibberish@xxxxxxxxxx>
- Date: Thu, 09 Feb 2006 16:04:26 -0500
On 9 Feb 2006 12:25:44 -0800, "soorya" <blackmagicinc@xxxxxxxxx>
wrote:
i need to make system wide hook, to make any dialog/msgbox windows
center.
since i am a vb6 programer, i need c++ dll to do this.
can some one help me where can i get free dll to use with VB6 and a
sample.
There are some free hook dlls (DS_) here.
http://www.mentalis.org/index2.shtml
i tried general system wide CBT Hook dll and fired at HCBT_CREATEWND
but if i use GetwindowRect() and MoveWindow() the dialog window is not
moving at all.
That's most likely a timing issue, iow you're probably moving it too
soon. The app creating the dialog or the default dlg proc itself is
moving the window after it's created. Try hooking WM_INITDIALOG with a
WH_CALLWNDPROC hook instead.
and any one know how to clear last window position in WinXP ?No idea.
-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
.
- Follow-Ups:
- Re: System Wide Hook to Center Dialog Windows - Help
- From: soorya
- Re: System Wide Hook to Center Dialog Windows - Help
- References:
- System Wide Hook to Center Dialog Windows - Help
- From: soorya
- System Wide Hook to Center Dialog Windows - Help
- Prev by Date: Re: API to find the location of a program
- Next by Date: Re: System Wide Hook to Center Dialog Windows - Help
- Previous by thread: System Wide Hook to Center Dialog Windows - Help
- Next by thread: Re: System Wide Hook to Center Dialog Windows - Help
- Index(es):
Relevant Pages
|