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.