Wizard97.cpp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // Wizard97.cpp : Defines the class behaviors for the application.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. #include "stdafx.h"
  13. #include "Wizard97.h"
  14. #include "WizSheet.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CWizard97App
  22. BEGIN_MESSAGE_MAP(CWizard97App, CWinApp)
  23. //{{AFX_MSG_MAP(CWizard97App)
  24. // NOTE - the ClassWizard will add and remove mapping macros here.
  25. // DO NOT EDIT what you see in these blocks of generated code!
  26. //}}AFX_MSG
  27. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  28. END_MESSAGE_MAP()
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CWizard97App construction
  31. CWizard97App::CWizard97App()
  32. {
  33. // TODO: add construction code here,
  34. // Place all significant initialization in InitInstance
  35. }
  36. /////////////////////////////////////////////////////////////////////////////
  37. // The one and only CWizard97App object
  38. CWizard97App theApp;
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CWizard97App initialization
  41. BOOL CWizard97App::InitInstance()
  42. {
  43. // use old style wizard (ala Wizard97 with IE4)
  44. {
  45. CWizard97Sheet dlg(TRUE);
  46. dlg.DoModal();
  47. }
  48. // display a new style wizard (ala Windows 2000)
  49. {
  50. CWizard97Sheet dlg(FALSE);
  51. dlg.DoModal();
  52. }
  53. // Since the dialog has been closed, return FALSE so that we exit the
  54. // application, rather than start the application's message pump.
  55. return FALSE;
  56. }