home *** CD-ROM | disk | FTP | other *** search
- // MMApp.cpp : Defines the class behaviors for the application.
- //
-
- #include "stdafx.h"
- #include "MMApp.h"
- #include "MMDlg.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CMMApp
-
- BEGIN_MESSAGE_MAP(CMMApp, CWinApp)
- //{{AFX_MSG_MAP(CMMApp)
- //}}AFX_MSG
- ON_COMMAND(ID_HELP, CWinApp::OnHelp)
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CMMApp construction
-
- CMMApp::CMMApp()
- {
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // The one and only CMMApp object
-
- CMMApp theApp;
-
- /////////////////////////////////////////////////////////////////////////////
- // CMMApp initialization
-
- BOOL CMMApp::InitInstance()
- {
- AfxEnableControlContainer();
-
- #ifdef _AFXDLL
- Enable3dControls(); // Call this when using MFC in a shared DLL
- #else
- Enable3dControlsStatic(); // Call this when linking to MFC statically
- #endif
-
- CMMDlg dlg;
- m_pMainWnd = &dlg;
- dlg.DoModal();
-
- return FALSE;
- }
-