CWinThread::Run
virtualintRun();
Return Value
An int value that is returned by the thread. This value can be retrieved by calling .
Remarks
Provides a default message loop for user-interface threads. Run acquires and dispatches Windows messages until the application receives a message. If the thread’s message queue currently contains no messages, Run calls OnIdle to perform idle-time processing. Incoming messages go to the PreTranslateMessage member function for special processing and then to the Windows function for standard keyboard translation. Finally, the Windows function is called.
Run is rarely overridden, but you can override it to implement special behavior.
This member function is used only in user-interface threads.
CWinThread Overview | Class Members | Hierarchy Chart
See Also CWinApp::Run