home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / maths2 / mathsppg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.2 KB  |  76 lines

  1. // MathsPpg.cpp : Implementation of the CMaths2PropPage property page class.
  2.  
  3. #include "stdafx.h"
  4. #include "Maths2.h"
  5. #include "mathsppg.h"
  6.  
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13.  
  14. IMPLEMENT_DYNCREATE(CMaths2PropPage, COlePropertyPage)
  15.  
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // Message map
  19.  
  20. BEGIN_MESSAGE_MAP(CMaths2PropPage, COlePropertyPage)
  21.     //{{AFX_MSG_MAP(CMaths2PropPage)
  22.     // NOTE - ClassWizard will add and remove message map entries
  23.     //    DO NOT EDIT what you see in these blocks of generated code !
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Initialize class factory and guid
  30.  
  31. IMPLEMENT_OLECREATE_EX(CMaths2PropPage, "MATHS.Maths2PropPage.1",
  32.     0x181cb004, 0xbeed, 0x11ce, 0x96, 0x11, 0, 0xaa, 0, 0x4a, 0x75, 0xcf)
  33.  
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CMaths2PropPage::CMaths2PropPageFactory::UpdateRegistry -
  37. // Adds or removes system registry entries for CMaths2PropPage
  38.  
  39. BOOL CMaths2PropPage::CMaths2PropPageFactory::UpdateRegistry(BOOL bRegister)
  40. {
  41.     if (bRegister)
  42.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  43.             m_clsid, IDS_Maths2_PPG);
  44.     else
  45.         return AfxOleUnregisterClass(m_clsid, NULL);
  46. }
  47.  
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CMaths2PropPage::CMaths2PropPage - Constructor
  51.  
  52. CMaths2PropPage::CMaths2PropPage() :
  53.     COlePropertyPage(IDD, IDS_Maths2_PPG_CAPTION)
  54. {
  55.     //{{AFX_DATA_INIT(CMaths2PropPage)
  56.     m_bOpposite = FALSE;
  57.     //}}AFX_DATA_INIT
  58. }
  59.  
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CMaths2PropPage::DoDataExchange - Moves data between page and properties
  63.  
  64. void CMaths2PropPage::DoDataExchange(CDataExchange* pDX)
  65. {
  66.     //{{AFX_DATA_MAP(CMaths2PropPage)
  67.     DDP_Check(pDX, IDC_CHECK1, m_bOpposite, _T("Opposite") );
  68.     DDX_Check(pDX, IDC_CHECK1, m_bOpposite);
  69.     //}}AFX_DATA_MAP
  70.     DDP_PostProcessing(pDX);
  71. }
  72.  
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CMaths2PropPage message handlers
  76.