[Win32 API] GetMessage Function()
Retrieves a message from (only) the calling thread's message queue. Syntax BOOL WINAPI GetMessage( __out LPMSG lpMsg, __in_opt HWND hWnd, __in UINT wMsgFilterMin, __in UINT wMsgFilterMax ); Parameters lpMsg : A pointer to an MSG structure that recives message information from the thread's message queue. hWind : A handle to the window whose message are to be retrieved. The Window must belong to the current thread. If hWnd is NULL, GetMessage retrieves message for any window that belong to the current thread, and any messages on the current thread's message whose hwnd value is NULL. Therefore if hWnd is NULL, both window massages and thread messages are processed. wMsgFilterMin : The integer value of the lowest message value to be retrieved. ex) Use WM_KEYFIRST(0x0100) to specify the first keyboard message or WM_MOUSEFIRST(0x0200) to specify the first mouse me...