1.什么是虚拟键(virtual-key messages)消息
答:The system generates virtual-key messages (WM_KEYDOWN and WM_KEYUP)
2.BOOL TranslateMessage(
const MSG* lpMsg );函数的作用
答:This function translates virtual-key messages into character messages. The character messages are posted to the calling thread's message queue, to be read the next time the thread calls the GetMessage or PeekMessage function
3.LONG DispatchMessage( const MSG* lpmsg );函数作用:
答:This function dispatches a message to a window procedure. It is typically used to dispatch a message retrieved by the GetMessage function
4.BOOL GetMessage( LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax );函数作用
答:This function retrieves a message from the calling thread's message queue and places it in the specified structure.
如果hWnd为NULL,GetMessage retrieves messages for any window that belongs to the calling thread and thread messages posted to the calling thread by means of PostThreadMessage.