No matter how use it, it returns NULL each time ad in each way? So why does it even exist?
This is a discussion on Why doesn't GetFocus() Work? within the Windows Programming forums, part of the Platform Specific Boards category; No matter how use it, it returns NULL each time ad in each way? So why does it even exist?...
No matter how use it, it returns NULL each time ad in each way? So why does it even exist?
Possible reason:
MSDN:
The GetFocus function retrieves the handle to the window that has the keyboard focus, if the window is attached to the calling thread's message queue.
If GetFocus returns NULL, another thread's queue may be attached to a window that has the keyboard focus.