Public Members

Data Members

m_pszAppName Specifies the name of the application.  
m_hInstance Corresponds to the hInstance parameter passed by Windows to WinMain.  
m_hPrevInstance Corresponds to the hPrevInstance parameter passed by Windows to WinMain.  
m_lpCmdLine Corresponds to the lpCmdLine parameter passed by Windows to WinMain.  
m_nCmdShow Corresponds to the nCmdShow parameter passed by Windows to WinMain.  
m_pMainWnd Holds a pointer to the application's main window. See InitInstance for an example of how to initialize m_pMainWnd.  

Construction/Destruction

CWinApp Constructs a CWinApp object.  

Operations

LoadCursor Loads a cursor resource, or a resource handle if the resource has been loaded previously.  
LoadStandardCursor Loads a Windows predefined cursor specified by IDC_ constants from WINDOWS.H.  
LoadOEMCursor Loads a Windows OEM predefined cursor specified by OCR_ constants from WINDOWS.H.  
LoadIcon Loads an icon resource, or a resource handle if the resource has been loaded previously.  
LoadStandardIcon Loads a Windows predefined icon specified by IDI_ constants from WINDOWS.H.  
LoadOEMIcon Loads a Windows OEM predefined icon specified by OIC_ constants from WINDOWS.H.  

Overridables

InitApplication Performs any application-level initialization when overridden. (Sometimes override.)  
InitInstance Performs Windows instance initialization, such as creating your window objects when overridden. (Always override.)  
Run Runs the default message loop. Override to customize the message loop. (Seldom override.)  
OnIdle Overrride to perform application-specific idle-time processing. (Sometimes override.)  
ExitInstance Override to clean up when your application terminates. (Sometimes override.)  
PreTranslateMessage Filters messages before they are dispatched to the Windows functions TranslateMessage and DispatchMessage. (Seldom override.)