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::Run
◄CWinApp►                                     ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  virtual    int Run();
 
  Remarks
 
  Provides a default message loop. Run acquires and dispatches Windows
  messages until a WM_QUIT message is received. If the application's
  message queue currently contains no messages, Run calls ◄OnIdle► to
  perform idle-time processing. Incoming messages are passed to
  ◄PreTranslateMessage► for special processing, then passed to the Windows
  function TranslateMessage for standard keyboard translation, and finally
  DispatchMessage is called.
 
  Run is rarely overridden, but you can override it to provide special
  behavior.
 
  Return Value
 
  An int value that is returned by WinMain.
 
 
                                     -♦-