CApp Class
class CApp: public _Base (default is CComModule)
SFL's standard application class. Holds global state for an application as well as functions for initializing the app, creating a main window running the message loop, and terminating the application.See Also CMTIApp
Defined in: Application.h
Class Template Arguments
_Base = ATL::CComModule
This first parameter must either be ATL's CComModule class, or be derived from ATL's CComModule class.
_MessageLoop
Message loop class for handling messages
_Initializer = CNoopInitializer
Class for handling initialization
Class Members
CApp()
Constructor
~CApp()
Destructor
Initialize the application
void Term()
Terminate the application
int Run()
Run the application
_MessageLoop* GetMessageLoop()
Get the message loop
_MessageLoop m_aMessageLoop
Message loop for this app