home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / mailx6 / _setup.2 / Group7 / Wizard95.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-06  |  1.9 KB  |  68 lines

  1. // Wizard95.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "resource.h"
  6. #include "Wiz95Dlg.h"
  7. #include "Wizard95.h"
  8.  
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CWizard95App
  18.  
  19. BEGIN_MESSAGE_MAP(CWizard95App, CWinApp)
  20.     //{{AFX_MSG_MAP(CWizard95App)
  21.         // NOTE - the ClassWizard will add and remove mapping macros here.
  22.         //    DO NOT EDIT what you see in these blocks of generated code!
  23.     //}}AFX_MSG
  24.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CWizard95App construction
  29.  
  30. CWizard95App::CWizard95App()
  31. {
  32.     // TODO: add construction code here,
  33.     // Place all significant initialization in InitInstance
  34. }
  35.  
  36. /////////////////////////////////////////////////////////////////////////////
  37. // The one and only CWizard95App object
  38.  
  39. CWizard95App theApp;
  40.  
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CWizard95App initialization
  43.  
  44. BOOL CWizard95App::InitInstance()
  45. {
  46.     AfxEnableControlContainer();
  47.  
  48.     // Standard initialization
  49.     // If you are not using these features and wish to reduce the size
  50.     //  of your final executable, you should remove from the following
  51.     //  the specific initialization routines you do not need.
  52.  
  53. #ifdef _AFXDLL
  54.     Enable3dControls();            // Call this when using MFC in a shared DLL
  55. #else
  56.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  57. #endif
  58.     m_pDlg=new CWizard95Dlg();
  59.  
  60.     m_pMainWnd = m_pDlg;
  61.     int nResponse = m_pDlg->DoModal();
  62.     delete m_pDlg;
  63.     m_pMainWnd=NULL;
  64.     // Since the dialog has been closed, return FALSE so that we exit the
  65.     //  application, rather than start the application's message pump.
  66.     return FALSE;
  67. }
  68.