|
Windows C++ Library
|
#include <MsgThread.hpp>
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. | |
typedef std::list<IMsgFilter*> CMsgThread::CMsgFilters [protected] |
| CMsgThread::~CMsgThread | ( | ) | [virtual] |
| int CMsgThread::Result | ( | ) | const [inline] |
Get the result from the WM_QUIT message.
| void CMsgThread::AddMsgFilter | ( | IMsgFilter * | pFilter | ) |
| void CMsgThread::RemoveMsgFilter | ( | 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.
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] |
CMsgFilters CMsgThread::m_oMsgFilters [protected] |
int CMsgThread::m_nResult [protected] |
The WM_QUIT result.
1.7.6.1