◄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. -♦-