Share via


CWinThread Class Members

Data Members

m_bAutoDelete Specifies whether to destroy the object at thread termination.
m_hThread Handle to the current thread.
m_nThreadID ID of the current thread.
m_pMainWnd Holds a pointer to the application’s main window.
m_pActiveWnd Pointer to the main window of the container application when an OLE server is in-place active.

Construction

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

Operations

GetMainWnd Retrieves a pointer to the main window for the thread.
GetThreadPriority Gets the priority of the current thread.
PostThreadMessage Posts a message to another CWinThread object.
ResumeThread Decrements a thread’s suspend count.
SetThreadPriority Sets the priority of the current thread.
SuspendThread Increments a thread’s suspend count.

Overridables

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 functions and .
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 function for threads with a message pump. Override to customize the default message loop.

CWinThread OverviewBase Class MembersHierarchy Chart