MyPropertySheet.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // MyPropertySheet.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. #include "MyPropertySheet.h"
  6. #ifdef _DEBUG
  7. #undef THIS_FILE
  8. static char BASED_CODE THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CMyPropertySheet
  12. IMPLEMENT_DYNAMIC(CMyPropertySheet, CPropertySheet)
  13. BEGIN_MESSAGE_MAP(CMyPropertySheet, CPropertySheet)
  14. //{{AFX_MSG_MAP(CMyPropertySheet)
  15. //}}AFX_MSG_MAP
  16. END_MESSAGE_MAP()
  17. CMyPropertySheet::CMyPropertySheet(CWnd* pWndParent)
  18. : CPropertySheet(_T("XListCtrlTest"), pWndParent)
  19. {
  20. AddPage(&m_Page1);
  21. AddPage(&m_Page2);
  22. AddPage(&m_Page3);
  23. }
  24. CMyPropertySheet::~CMyPropertySheet()
  25. {
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CMyPropertySheet message handlers
  29. BOOL CMyPropertySheet::OnInitDialog()
  30. {
  31. CPropertySheet::OnInitDialog();
  32. // ModifyStyleEx(WS_EX_DLGMODALFRAME, 0); // enable sys menu and icon
  33. // set minimal size
  34. CRect rc;
  35. GetWindowRect(&rc);
  36. return TRUE;
  37. }