PropSheet.cpp
Upload User: spzyw88
Upload Date: 2020-05-08
Package Size: 1874k
Code Size: 1k
Category:

PropertySheet

Development Platform:

Visual C++

  1. // PropSheet.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "Prop.h"
  5. #include "PropSheet.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPropSheet
  13. IMPLEMENT_DYNAMIC(CPropSheet, CPropertySheet)
  14. CPropSheet::CPropSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  15. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  16. {
  17. AddPage(&m_prop1);
  18. AddPage(&m_prop2);
  19. }
  20. CPropSheet::CPropSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  21. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  22. {
  23. AddPage(&m_prop1);
  24. AddPage(&m_prop2);
  25. }
  26. CPropSheet::~CPropSheet()
  27. {
  28. }
  29. BEGIN_MESSAGE_MAP(CPropSheet, CPropertySheet)
  30. //{{AFX_MSG_MAP(CPropSheet)
  31. // NOTE - the ClassWizard will add and remove mapping macros here.
  32. //}}AFX_MSG_MAP
  33. END_MESSAGE_MAP()
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CPropSheet message handlers