CWinApp

The CWinApp class is the base class from which you derive a Windows application object. An application object provides member functions for initializing your application (and each instance of it) and for running the application.

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

The CWinApp constructor has been changed. In addition to providing the application's name, you can optionally provide the name of its help file as well.

Windows CE supports the CWinApp::LoadIcon member function differently than Windows 95 and Windows NT do.

MFC for Windows CE supports the CWinApp::ProcessMessageFilter member function for compatibility with existing code, but this function does not do anything in Windows CE.

Windows CE does not initialize the m_pszExeName property to the application's executable file name. If you use this data member, you must assign it a value, yourself.

MFC for Windows CE does not support the m_pActiveWnd property of the CWinApp class.

MFC for Windows CE does not support the following member functions of the CWinApp class.

CreatePrinterDC

EnableShellOpen

Enable3dControls

Enable3dControlsStatic

GetPrinterDeviceDefaults

LoadCursor

LoadOEMCursor

LoadStandardCursor

OnContextHelp

OnFilePrintSetup

OnHelpIndex

OnHelpFinder

OnHelpUsing

PreTranslateMessage

RegisterShellFileTypes

RunAutomated

RunEmbedded

SelectPrinter

See Also

CWinApp Member Functions, CWinApp Data Members, Application Architecture Classes, CWinApp::CWinApp, CWinApp::LoadIcon, CWinApp::ProcessMessageFilter, ,