From: rahul on
When pNewWind (pointer passed to OnKillFoucus handler) will be NULL?
From: Goran on
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.