home *** CD-ROM | disk | FTP | other *** search
- // UseAtlTrig.cpp : Defines the class behaviors for the application.
-
- #include "stdafx.h"
- #include "UseAtlTrig.h"
- #include "UseAtlTrigDlg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- // CUseAtlTrigApp
- BEGIN_MESSAGE_MAP(CUseAtlTrigApp, CWinApp)
- //{{AFX_MSG_MAP(CUseAtlTrigApp)
- //}}AFX_MSG
- ON_COMMAND(ID_HELP, CWinApp::OnHelp)
- END_MESSAGE_MAP()
-
- // CUseAtlTrigApp construction
- CUseAtlTrigApp::CUseAtlTrigApp()
- {
- }
-
- // The one and only CUseAtlTrigApp object
- CUseAtlTrigApp theApp;
-
- // CUseAtlTrigApp initialization
- BOOL CUseAtlTrigApp::InitInstance()
- {
- // Initialize OLE libraries
- if (!AfxOleInit())
- {
- AfxMessageBox("Unable to register OLE libraries.");
- return FALSE;
- }
-
- #ifdef _AFXDLL
- Enable3dControls(); // Call this when using MFC in a shared DLL
- #else
- Enable3dControlsStatic(); // Call this when linking to MFC statically
- #endif
-
- CUseAtlTrigDlg dlg;
- m_pMainWnd = &dlg;
- dlg.DoModal();
-
- return FALSE;
- }
-