CWinThread Methods

Construction Methods

Method Description
CWinThread Constructs a CWinThread object.
CreateThread Starts execution of a CWinThread object.

Operations Methods

Method Description
GetMainWnd Retrieves a pointer to the main window for the thread.
GetThreadPriority Gets the priority of the current thread.
ResumeThread Decrements a thread’s suspend count.
SetThreadPriority Sets the priority of the current thread.
SuspendThread Increments a thread’s suspend count.

Overridable Methods

Method Description
ExitInstance Override to clean up when your thread terminates.
InitInstance Override to perform thread instance initialization.
OnIdle Override to perform thread-specific idle-time processing.
PreTranslateMessage Filters messages before they are dispatched to the Windows CE TranslateMessage and DispatchMessage functions.
IsIdleMessage Checks for special messages.
ProcessWndProcException Intercepts all unhandled exceptions thrown by the thread’s message and command handlers.
ProcessMessageFilter Intercepts certain messages before they reach the application.
Run Controlling method for threads with a message pump. Override to customize the default message loop.