CWinThread Members

Base Class Members

CObject Members

CCmdTarget 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_pActiveWnd

Pointer to the main window of the container application when an OLE server is in-place active.

m_pMainWnd

Holds a pointer to the application's main window.

Construction

CreateThread

Starts execution of a CWinThread object.

CWinThread

Constructs 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.

IsIdleMessage

Checks for special messages.

OnIdle

Override to perform thread-specific idle-time processing.

PreTranslateMessage

Filters messages before they are dispatched to the Windows functions TranslateMessage and DispatchMessage.

ProcessMessageFilter

Intercepts certain messages before they reach the application.

ProcessWndProcException

Intercepts all unhandled exceptions thrown by the thread's message and command handlers.

PumpMessage

Contains the thread's message loop.

Run

Controlling function for threads with a message pump. Override to customize the default message loop.

Operators

operator HANDLE

Retrieves the handle of the CWinThread object.

See Also

Reference

CWinThread Class

Hierarchy Chart