Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWinApp::PreTranslateMessage
CWinApp                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  virtual BOOL PreTranslateMessage( MSG* pMsg );
 
  Parameter   Description
 
  <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.
 
 
                                     -♦-