home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VCM / VCM.MDB / VcmComponentContainer / 20_Cabinet / WIZSHEET.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-18  |  2.1 KB  |  74 lines

  1. // SampWizP.cpp : implementation file
  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.  
  13. #include "stdafx.h"
  14. #include "Wizard97.h"
  15. #include "WizSheet.h"
  16.  
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CSampWizP
  25.  
  26. IMPLEMENT_DYNAMIC(CWizard97Sheet, CPropertySheetEx)
  27.  
  28. CWizard97Sheet::CWizard97Sheet(UINT nIDCaption, CWnd* pParentWnd,
  29.     UINT iSelectPage, HBITMAP hbmWatermark, HPALETTE hpalWatermark,
  30.     HBITMAP hbmHeader)
  31. : CPropertySheetEx(nIDCaption, pParentWnd, iSelectPage,
  32.                   hbmWatermark, hpalWatermark, hbmHeader)
  33. {
  34.     // add all the pages of the wizard
  35.     AddPage(&m_Intro);
  36.     AddPage(&m_Interior1);
  37.     AddPage(&m_Interior2);
  38.     AddPage(&m_Completion);
  39.  
  40.     // set the WIZARD97 flag so we'll get the new look
  41.     m_psh.dwFlags |= PSH_WIZARD97;
  42. }
  43.  
  44. CWizard97Sheet::CWizard97Sheet(LPCTSTR pszCaption, CWnd* pParentWnd,
  45.     UINT iSelectPage, HBITMAP hbmWatermark, HPALETTE hpalWatermark,
  46.     HBITMAP hbmHeader)
  47. : CPropertySheetEx(pszCaption, pParentWnd, iSelectPage,
  48.                       hbmWatermark, hpalWatermark, hbmHeader)
  49.  
  50. {
  51.     // add all the pages of the wizard
  52.     AddPage(&m_Intro);
  53.     AddPage(&m_Interior1);
  54.     AddPage(&m_Interior2);
  55.     AddPage(&m_Completion);
  56.  
  57.     // set the WIZARD97 flag so we'll get the new look
  58.     m_psh.dwFlags |= PSH_WIZARD97;
  59. }
  60.  
  61. CWizard97Sheet::~CWizard97Sheet()
  62. {
  63. }
  64.  
  65.  
  66. BEGIN_MESSAGE_MAP(CWizard97Sheet, CPropertySheetEx)
  67.     //{{AFX_MSG_MAP(CWizard97Sheet)
  68.         // NOTE - the ClassWizard will add and remove mapping macros here.
  69.     //}}AFX_MSG_MAP
  70. END_MESSAGE_MAP()
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73. // CWizard97Sheet message handlers
  74.