J
Jerod Houghtelling
Hi all,
Does anybody know of a way to have a C# PPC/WM application receive
notification when a window is brought to the foreground. Catching the
forms Deactivate and LostFocus events are not good enough. I need to
be able to globally catch the event when an window is brought to the
foreground. Currently I'm doing this with GetForegroundWindow() and a
Timer checking to see if the current foreground window is different
then the last time I checked. This seems extremely inefficient so I
was hoping that maybe I could register an event or use
WaitForSignalObject if I knew the event name.
Any help would be extremely appreciated!
Thanks,
Jerod
Does anybody know of a way to have a C# PPC/WM application receive
notification when a window is brought to the foreground. Catching the
forms Deactivate and LostFocus events are not good enough. I need to
be able to globally catch the event when an window is brought to the
foreground. Currently I'm doing this with GetForegroundWindow() and a
Timer checking to see if the current foreground window is different
then the last time I checked. This seems extremely inefficient so I
was hoping that maybe I could register an event or use
WaitForSignalObject if I knew the event name.
Any help would be extremely appreciated!
Thanks,
Jerod