BarCodePropPage.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // BarCodePropPage.cpp : Implementation of the CBarCodePropPage property page class.
  2. #include "stdafx.h"
  3. #include "BarCode.h"
  4. #include "BarCodePropPage.h"
  5. #include ".\barcodeproppage.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #endif
  9. IMPLEMENT_DYNCREATE(CBarCodePropPage, COlePropertyPage)
  10. // Message map
  11. BEGIN_MESSAGE_MAP(CBarCodePropPage, COlePropertyPage)
  12. END_MESSAGE_MAP()
  13. // Initialize class factory and guid
  14. IMPLEMENT_OLECREATE_EX(CBarCodePropPage, "BARCODE.BarCodePropPage.1",
  15. 0x86f10225, 0x14ea, 0x47f0, 0xbb, 0x60, 0x1c, 0xef, 0x8b, 0xff, 0x78, 0x94)
  16. // CBarCodePropPage::CBarCodePropPageFactory::UpdateRegistry -
  17. // Adds or removes system registry entries for CBarCodePropPage
  18. BOOL CBarCodePropPage::CBarCodePropPageFactory::UpdateRegistry(BOOL bRegister)
  19. {
  20. if (bRegister)
  21. return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  22. m_clsid, IDS_BARCODE_PPG);
  23. else
  24. return AfxOleUnregisterClass(m_clsid, NULL);
  25. }
  26. // CBarCodePropPage::CBarCodePropPage - Constructor
  27. CBarCodePropPage::CBarCodePropPage() :
  28. COlePropertyPage(IDD, IDS_BARCODE_PPG_CAPTION)
  29. {
  30. }
  31. // CBarCodePropPage::DoDataExchange - Moves data between page and properties
  32. void CBarCodePropPage::DoDataExchange(CDataExchange* pDX)
  33. {
  34. DDP_PostProcessing(pDX);
  35. }
  36. // CBarCodePropPage message handlers