CCreateDialogMessageLoop Class
class CCreateDialogMessageLoop
This class is provided as a standard way to manage a dialog 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). CCreateDialogMessageLoop fills in the two virtual functions for managing the window: CreateMainWindow and CreateMainWindow.See Also CMessageLoopBase, CCreateWindowMessageLoop, and CMessageLoopDefaultImpl
Defined in: Application.h
Class Template Arguments
_DialogClass
Type of dialog window to create and destroy
_Base = CMessageLoopBase
Base class
Member functions include: CreateMainWindow, DestroyMainWindow,
Class Members
void CreateMainWindow( int nCmdShow, void* lpParam = NULL )
Create the main dialog window
void DestroyMainWindow( )
Destroy the main dialog window. Default implementation does nothing.
_DialogClass* m_pwndMain
Pointer to the main dialog window-- notice it's based on the template parameter