Hi,
i have an app i wrote which can intercept the hardware keys and do
something. One of the "something" i would like to do is close
dialogues when a certain key is pressed. How can i do this?

By "dialogues", i mean modal forms AND those bubble notifications on
the taskbar.

i know how to find a window by it's class, and i know how to send a
WM_CLOSE message. i also have a key handler class that can handle the
hardware keys "globally" (meaning it doesn't matter what app i am in, i
detect when a key is pressed)...

my problem is, i can't seem to detect when one of those lil taskbar
bubble notification dialogue appears and i cant seem to "find" them. I
assume when the show up, the have the focus, since if i am typing and
they appear, i have to click back to where i was to continue typing.
However, GetActiveWindow does not return a valid Ptr/Handle when they
pop up. I also cannot find them because i do not know the Window Class
for these notification dialogues and i am currently not able to get
Remote Spy going on my machine for some reason.

any assistance would be greatly appreciated

Re: Killing Notification dialogues by altarace

altarace
Thu Jul 21 16:09:59 CDT 2005

I used ::GetForegroundWindow() and it did return the handle to these
bubbles

the class name is "Worker"


Re: Killing Notification dialogues by farseer

farseer
Fri Jul 22 23:01:29 CDT 2005

thanks. i will try this. btw, i downloaded mVC++ and ran spy it states
the class name is Dialog, with Worker as a child