CWinApp::PreTranslateMessage See Also
CWinApp Overview | Class Members | Hierarchy Chart | DispatchMessage | TranslateMessage
Override this function to filter window messages before they are dispatched to the Windows functions TranslateMessage and DispatchMessage The default implementation performs accelerator-key translation, so you must call the CWinApp::PreTranslateMessage member function in your overridden version.
virtual BOOL PreTranslateMessage(
MSG* pMsg
);
Parameters
pMsg
A pointer to a MSG structure that contains the message to process.
/////////
MSG StructureSee Also
Structures, Styles, Callbacks, and Message Maps
The MSG structure contains message information from a thread's message queue.
typedef struct tagMSG { // msg
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
} MSG;
Parameters
hwnd
Identifies the window whose window procedure receives the message.
message
Specifies the message number.
wParam
Specifies additional information about the message. The exact meaning depends on the value of the message member.
lParam
Specifies additional information about the message. The exact meaning depends on the value of the message member.
time
Specifies the time at which the message was posted.
pt
Specifies the cursor position, in screen coordinates, when the message was posted.