CWinApp::PreTranslateMessage

Syntax

virtual BOOL PreTranslateMessage( MSG* pMsg );

Parameters

pMsg

A pointer to a MSG structure containing the message to process.

Remarks

Override this function to filter window messages before they are dispatched to the Windows functions TranslateMessage and DispatchMessage. The default implementation performs access-key translation, so you must call PreTranslateMessage in your overridden version.

Return Value

TRUE if the message was fully processed in PreTranslateMessage and should not be passed to the Windows functions TranslateMessage and DispatchMessage. FALSE if the message should be processed in the normal way.