home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / wordpad / unitspag.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  64 lines

  1. // unitspag.cpp : implementation file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "wordpad.h"
  15. #include "unitspag.h"
  16. #include "helpids.h"
  17.  
  18. #ifdef _DEBUG
  19. #undef THIS_FILE
  20. static char BASED_CODE THIS_FILE[] = __FILE__;
  21. #endif
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CUnitsPage dialog
  25.  
  26. const DWORD CUnitsPage::m_nHelpIDs[] =
  27. {
  28.     IDC_BOX, IDH_COMM_GROUPBOX,
  29.     IDC_UNITS_IN, IDH_WORDPAD_INCHES,
  30.     IDC_UNITS_CM, IDH_WORDPAD_CENTIMETERS,
  31.     IDC_UNITS_PT, IDH_WORDPAD_POINTS,
  32.     IDC_UNITS_PI, IDH_WORDPAD_PICAS,
  33.     IDC_WORDSEL, IDH_WORDPAD_OPTIONS_AUTOWORDSEL,
  34.     0, 0
  35. };
  36.  
  37. CUnitsPage::CUnitsPage() : CCSPropertyPage(CUnitsPage::IDD)
  38. {
  39.     //{{AFX_DATA_INIT(CUnitsPage)
  40.     m_nUnits = -1;
  41.     m_bWordSel = FALSE;
  42.     //}}AFX_DATA_INIT
  43. }
  44.  
  45.  
  46. void CUnitsPage::DoDataExchange(CDataExchange* pDX)
  47. {
  48.     CCSPropertyPage::DoDataExchange(pDX);
  49.     //{{AFX_DATA_MAP(CUnitsPage)
  50.     DDX_Radio(pDX, IDC_UNITS_IN, m_nUnits);
  51.     DDX_Check(pDX, IDC_WORDSEL, m_bWordSel);
  52.     //}}AFX_DATA_MAP
  53. }
  54.  
  55. BEGIN_MESSAGE_MAP(CUnitsPage, CCSPropertyPage)
  56.     //{{AFX_MSG_MAP(CUnitsPage)
  57.         // NOTE: the ClassWizard will add message map macros here
  58.     //}}AFX_MSG_MAP
  59. END_MESSAGE_MAP()
  60.  
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63. // CUnitsPage message handlers
  64.