Информатика и программирование: Visual C++ с использованием библиотеки MFC. Дербакова Е.П. - 40 стр.

UptoLike

Составители: 

40
BOOL CNewprjApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish
to reduce the size
// of your final executable, you should re-
move from the following
// the specific initialization routines you do
not need.
#ifdef _AFXDLL
Enable3dControls(); // Call
this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this
when linking to MFC statically
#endif
// Change the registry key under which our
settings are stored.
// TODO: You should modify this string to be
something appropriate
// such as the name of your company or or-
ganization.
SetRegistryKey(_T("Local AppWizard-
Generated Applications"));
LoadStdProfileSettings(); // Load standard
INI file options (including MRU)
BOOL CNewprjApp::InitInstance()
{
       AfxEnableControlContainer();
       // Standard initialization
       // If you are not using these features and wish
to reduce the size
       // of your final executable, you should re-
move from the following
       // the specific initialization routines you do
not need.
#ifdef _AFXDLL
       Enable3dControls();                      // Call
this when using MFC in a shared DLL
#else
       Enable3dControlsStatic();         // Call this
when linking to MFC statically
#endif
       // Change the registry key under which our
settings are stored.
       // TODO: You should modify this string to be
something appropriate
       // such as the name of your company or or-
ganization.
       SetRegistryKey(_T("Local AppWizard-
Generated Applications"));
       LoadStdProfileSettings(); // Load standard
INI file options (including MRU)

                          40