Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Sat, 7 Jun 2008 17:32:03 +0100,    group: microsoft.public.win32.programmer.ui        back       


Windows hooks   
Hello,

I've been using windows hooks (SetWindowsHookEx and WinEventHook) to tell me 
when a window is created. However, they do not tell me when a dialog/message 
box is created. How can I find out when a dialog/message box is created?

TIA
Nic.
date: Sat, 7 Jun 2008 17:32:03 +0100   author:   Nic

Re: Windows hooks   
Dialogs and message boxes are windows, so I I don't understand your 
question.


"Nic"  wrote in message 
news:pKy2k.6952$X6.5223@newsfe30.ams2...
> Hello,
>
> I've been using windows hooks (SetWindowsHookEx and WinEventHook) to tell 
> me when a window is created. However, they do not tell me when a 
> dialog/message box is created. How can I find out when a dialog/message 
> box is created?
>
> TIA
> Nic.
>
>
date: Sat, 7 Jun 2008 14:37:29 -0700   author:   Sam Hobbs _change_social_to_socal

Re: Windows hooks   
On Jun 7, 9:32 am, "Nic"  wrote:
> Hello,
>
> I've been using windows hooks (SetWindowsHookEx and WinEventHook) to tell me
> when a window is created. However, they do not tell me when a dialog/message
> box is created. How can I find out when a dialog/message box is created?
>
> TIA
> Nic.


Hi,

The WH_CBT hook should do what you want nicely as the hook
insinuates itself into Window's handling of about everything that
involves a window (creation and deletion).

The hook itself must reside in a .DLL file if it is to catch
notifications on a global rather than per-application basis.

http://msdn.microsoft.com/en-us/library/ms644959(VS.85).aspx

http://msdn.microsoft.com/en-us/library/ms997537.aspx

Kellie.
date: Sat, 7 Jun 2008 17:54:00 -0700 (PDT)   author:   Kellie Fitton

Re: Windows hooks   
Kellie Fitton wrote:
> On Jun 7, 9:32 am, "Nic"  wrote:

>> I've been using windows hooks (SetWindowsHookEx and WinEventHook) to tell me
>> when a window is created. However, they do not tell me when a dialog/message
>> box is created. How can I find out when a dialog/message box is created?

> Hi,
> 
> The WH_CBT hook should do what you want 

Irrelevant.
Read the question..
date: Sun, 08 Jun 2008 11:43:50 +0200   author:   Benoit

Re: Windows hooks   
"Nic"  wrote in message 
news:pKy2k.6952$X6.5223@newsfe30.ams2...
> Hello,
>
> I've been using windows hooks (SetWindowsHookEx and WinEventHook) to tell 
> me when a window is created. However, they do not tell me when a 
> dialog/message box is created. How can I find out when a dialog/message 
> box is created?

    All you can do is filter the message events based on the class of the 
new window.  A dialog box will be a member of class "32768".  You can also 
look at the window text and whatever text controls the dialog contains to 
determine if it's the window you're looking for.

-- 

- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools
date: Fri, 13 Jun 2008 13:33:03 -0400   author:   Gary Chanson

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us