CMessageLoopBase Class
class CMessageLoopBase
This class is provided as a standard way to manage an application's message loop. The general structure for most applications is to create a main window, run the message loop (via GetMessage/DispatchMessage) and finally destroy the main window when the WM_QUIT message is received) CMessageLoopBase has two virtual functions for managing the window: CreateMainWindow and DestroyMainWindow. Applications cannot use CMessageLoopBase directly, instead using one of CMessageLoopBase's derivatives.Member functions include: CreateMainWindow, DestroyMainWindow, Run, RunMessageLoop, CreateMainWindow, OnIdle, IsIdleMessage, and PreTranslateMessage
Defined in: Application.h
Class Members
int Run()
Creates the main window, runs the message loop, and destroys the main waindow
virtual void CreateMainWindow(int nCmdShow, void* lpParam = NULL)
Create the main window
virtual void DestroyMainWindow()
Destroy the main window
int RunMessageLoop()
Run the message loop
virtual bool PreTranslateMessage(MSG* pMsg)
Message pre-translation.
virtual bool OnIdle(int nIdleCount)
Handle Idle time processing
static bool IsIdleMessage(MSG* pMsg)
Is the current message an idle message?