P3DActiveXPropPage.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Filename: P3DActiveXPropPage.cpp
  2. // Created by: atrestman (14Sept09)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. // P3DActiveXPropPage.cpp : Implementation of the CP3DActiveXPropPage property page class.
  15. #include "stdafx.h"
  16. #include "P3DActiveX.h"
  17. #include "P3DActiveXPropPage.h"
  18. #ifdef _DEBUG
  19. #define new DEBUG_NEW
  20. #endif
  21. IMPLEMENT_DYNCREATE(CP3DActiveXPropPage, COlePropertyPage)
  22. // Message map
  23. BEGIN_MESSAGE_MAP(CP3DActiveXPropPage, COlePropertyPage)
  24. END_MESSAGE_MAP()
  25. // Initialize class factory and guid
  26. IMPLEMENT_OLECREATE_EX(CP3DActiveXPropPage, "P3DACTIVEX.P3DActiveXPropPage.1",
  27. 0xd0111370, 0xe705, 0x485e, 0x96, 0xfd, 0xa2, 0xef, 0xb1, 0x71, 0x26, 0x9a)
  28. // CP3DActiveXPropPage::CP3DActiveXPropPageFactory::UpdateRegistry -
  29. // Adds or removes system registry entries for CP3DActiveXPropPage
  30. BOOL CP3DActiveXPropPage::CP3DActiveXPropPageFactory::UpdateRegistry(BOOL bRegister)
  31. {
  32. if (bRegister)
  33. return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  34. m_clsid, IDS_P3DACTIVEX_PPG);
  35. else
  36. return AfxOleUnregisterClass(m_clsid, NULL);
  37. }
  38. // CP3DActiveXPropPage::CP3DActiveXPropPage - Constructor
  39. CP3DActiveXPropPage::CP3DActiveXPropPage() :
  40. COlePropertyPage(IDD, IDS_P3DACTIVEX_PPG_CAPTION)
  41. {
  42. }
  43. // CP3DActiveXPropPage::DoDataExchange - Moves data between page and properties
  44. void CP3DActiveXPropPage::DoDataExchange(CDataExchange* pDX)
  45. {
  46. DDP_PostProcessing(pDX);
  47. }
  48. // CP3DActiveXPropPage message handlers