1. Alt-Tab
How can i tell if a Win32 program has lost focus, or what ever happens when
you change to a different program??
2. Re: Alt-Tab
Liquid-Nitrogen Software wrote:
> How can i tell if a Win32 program has lost focus,
> or what ever happens when you change to a different
> program??
Win32 issues the messages WM_SETFOCUS when a window is about to get focus,
and WM_KILLFOCUS.
If you've captured the mouse, you will also get a WM_CAPTURECHANGED message
warning you that another application is about to grab the mouse away from
you. Most applications don't actually pay attention to this message,
unfortunately.
-- David Cuny