Prev: Reminder - Microsoft Responds to the Evolution of Community - (Updated Recommended Forum)
Next: No _ttof in Visual Studio 2008
From: rahul on 21 May 2010 03:25 When pNewWind (pointer passed to OnKillFoucus handler) will be NULL?
From: Goran on 21 May 2010 06:01
On May 21, 9:25 am, rahul <hyrahu...(a)gmail.com> wrote: > When pNewWind (pointer passed to OnKillFoucus handler) will be NULL? On my machine, when I set focus on any other program's window. Why do you care (IOW, you have a bad question here)? MSDN says that it can be NULL. It means that you are not supposed to know the next window at any given time WM_KILLFOCUS is sent. And indeed, it is possible, especially in Vista+, that random program can't receive a HWND of another program (e.g. that other program runs elevated). Goran. |