CCreateWindowMessageLoop Class
class CCreateWindowMessageLoop
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). CCreateWindowMessageLoop fills in the two virtual functions for managing the window: CreateMainWindow and CreateMainWindow. Applications can use CCreateWindowMessageLoop directly, though you may prefer to use CMessageLoopDefaultImpl.See Also CMessageLoopBase, CCreateDialogMessageLoop, and CMessageLoopDefaultImpl
Member functions include: CreateMainWindow, DestroyMainWindow,
Defined in: Application.h
Class Template Arguments
_WindowClass
Type of window to create and destroy
_Base = CMessageLoopBase
Base class
Class Members
void CreateMainWindow(int nCmdShow, void* lpParam = NULL)
Create the application's main window
void DestroyMainWindow()
Destroy the application's main window
_WindowClass* m_pwndMain
Pointer to the main window-- notice it's based on the template parameter