Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.4 KiB

  1. // SplitterPpg.cpp : Implementation of the CSplitterPropPage property page class.
  2. #include "stdafx.h"
  3. #include "Splitter.h"
  4. #include "SplitterPpg.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. IMPLEMENT_DYNCREATE(CSplitterPropPage, COlePropertyPage)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // Message map
  13. BEGIN_MESSAGE_MAP(CSplitterPropPage, COlePropertyPage)
  14. //{{AFX_MSG_MAP(CSplitterPropPage)
  15. // NOTE - ClassWizard will add and remove message map entries
  16. // DO NOT EDIT what you see in these blocks of generated code !
  17. //}}AFX_MSG_MAP
  18. END_MESSAGE_MAP()
  19. /////////////////////////////////////////////////////////////////////////////
  20. // Initialize class factory and guid
  21. IMPLEMENT_OLECREATE_EX(CSplitterPropPage, "SPLITTER.SplitterPropPage.1",
  22. 0x58bb5d62, 0x8e20, 0x11d2, 0x8a, 0xda, 0, 0, 0xf8, 0x7a, 0x39, 0x12)
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CSplitterPropPage::CSplitterPropPageFactory::UpdateRegistry -
  25. // Adds or removes system registry entries for CSplitterPropPage
  26. BOOL CSplitterPropPage::CSplitterPropPageFactory::UpdateRegistry(BOOL bRegister)
  27. {
  28. if (bRegister)
  29. return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  30. m_clsid, IDS_SPLITTER_PPG);
  31. else
  32. return AfxOleUnregisterClass(m_clsid, NULL);
  33. }
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CSplitterPropPage::CSplitterPropPage - Constructor
  36. CSplitterPropPage::CSplitterPropPage() :
  37. COlePropertyPage(IDD, IDS_SPLITTER_PPG_CAPTION)
  38. {
  39. //{{AFX_DATA_INIT(CSplitterPropPage)
  40. // NOTE: ClassWizard will add member initialization here
  41. // DO NOT EDIT what you see in these blocks of generated code !
  42. //}}AFX_DATA_INIT
  43. SetHelpInfo(_T("Names to appear in the control"), _T("SPLITTER.HLP"), 0);
  44. }
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CSplitterPropPage::DoDataExchange - Moves data between page and properties
  47. void CSplitterPropPage::DoDataExchange(CDataExchange* pDX)
  48. {
  49. //{{AFX_DATA_MAP(CSplitterPropPage)
  50. // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  51. // DO NOT EDIT what you see in these blocks of generated code !
  52. //}}AFX_DATA_MAP
  53. DDP_PostProcessing(pDX);
  54. }
  55. /////////////////////////////////////////////////////////////////////////////
  56. // CSplitterPropPage message handlers