This function retrieves the window handle to the active window associated with the thread that calls the function.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
HWND GetActiveWindow(void);
Return Values
The handle to the active window associated with the calling thread's message queue indicates success. NULL indicates failure.