Windows C++ Library
Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
CMsgThread Class Reference

#include <MsgThread.hpp>

Inheritance diagram for CMsgThread:
CThread CMainThread ThreadPoolThread

List of all members.

Public Member Functions

 CMsgThread ()
virtual ~CMsgThread ()
int Result () const
 Get the result from the WM_QUIT message.
void AddMsgFilter (IMsgFilter *pFilter)
void RemoveMsgFilter (IMsgFilter *pFilter)
bool ProcessMsgQueue (bool bRepostQuitMsg=true)
const MSG & CurrentMsg () const

Static Public Attributes

static const int THREAD_EXIT_SUCCESS = EXIT_SUCCESS
 The thread result code for succeess.
static const int THREAD_EXIT_FAILURE = EXIT_FAILURE
 The thread result code for failure.

Protected Types

typedef std::list< IMsgFilter * > CMsgFilters

Protected Member Functions

virtual void Run ()
virtual void OnThreadMsg (UINT nMsg, WPARAM wParam, LPARAM lParam)

Protected Attributes

MSG m_oMsg
CMsgFilters m_oMsgFilters
int m_nResult
 The WM_QUIT result.

Member Typedef Documentation

typedef std::list<IMsgFilter*> CMsgThread::CMsgFilters [protected]

Constructor & Destructor Documentation

CMsgThread::~CMsgThread ( ) [virtual]

Member Function Documentation

int CMsgThread::Result ( ) const [inline]

Get the result from the WM_QUIT message.

void CMsgThread::AddMsgFilter ( IMsgFilter pFilter)
bool CMsgThread::ProcessMsgQueue ( bool  bRepostQuitMsg = true)
const MSG & CMsgThread::CurrentMsg ( ) const [inline]
void CMsgThread::Run ( ) [protected, virtual]

Implements CThread.

Reimplemented in CMainThread.

void CMsgThread::OnThreadMsg ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Reimplemented in ThreadPoolThread, and CMainThread.


Member Data Documentation

const int CMsgThread::THREAD_EXIT_SUCCESS = EXIT_SUCCESS [static]

The thread result code for succeess.

const int CMsgThread::THREAD_EXIT_FAILURE = EXIT_FAILURE [static]

The thread result code for failure.

MSG CMsgThread::m_oMsg [protected]
int CMsgThread::m_nResult [protected]

The WM_QUIT result.


The documentation for this class was generated from the following files: