home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / tabdemo / style.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-30  |  1.1 KB  |  51 lines

  1. // Style.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "TabDemo.h"
  6. #include "Style.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CStyle property page
  16.  
  17. IMPLEMENT_DYNCREATE(CStyle, CPropertyPage)
  18.  
  19. CStyle::CStyle() : CPropertyPage(CStyle::IDD)
  20. {
  21.    //{{AFX_DATA_INIT(CStyle)
  22.    m_Bold = FALSE;
  23.    m_Italic = FALSE;
  24.    m_Underline = FALSE;
  25.    //}}AFX_DATA_INIT
  26. }
  27.  
  28. CStyle::~CStyle()
  29. {
  30. }
  31.  
  32. void CStyle::DoDataExchange(CDataExchange* pDX)
  33. {
  34.    CPropertyPage::DoDataExchange(pDX);
  35.    //{{AFX_DATA_MAP(CStyle)
  36.    DDX_Check(pDX, IDC_BOLD, m_Bold);
  37.    DDX_Check(pDX, IDC_ITALIC, m_Italic);
  38.    DDX_Check(pDX, IDC_UNDERLINE, m_Underline);
  39.    //}}AFX_DATA_MAP
  40. }
  41.  
  42.  
  43. BEGIN_MESSAGE_MAP(CStyle, CPropertyPage)
  44.    //{{AFX_MSG_MAP(CStyle)
  45.       // NOTE: the ClassWizard will add message map macros here
  46.    //}}AFX_MSG_MAP
  47. END_MESSAGE_MAP()
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CStyle message handlers
  51.