home *** CD-ROM | disk | FTP | other *** search
/ ftp.funduc.com / 2014.08.ftp.funduc.com.tar / ftp.funduc.com / fshedcode102502.zip / ColorsPage.cpp < prev    next >
C/C++ Source or Header  |  2001-12-09  |  2KB  |  63 lines

  1. // ColorsPage.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "fshed.h"
  6. #include "ColorsPage.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. // CColorsPage property page
  16.  
  17. IMPLEMENT_DYNCREATE(CColorsPage, CPropertyPage)
  18.  
  19. CColorsPage::CColorsPage() : CPropertyPage(CColorsPage::IDD)
  20. {
  21.     //{{AFX_DATA_INIT(CColorsPage)
  22.         // NOTE: the ClassWizard will add member initialization here
  23.     //}}AFX_DATA_INIT
  24. }
  25.  
  26. CColorsPage::~CColorsPage()
  27. {
  28. }
  29.  
  30. void CColorsPage::DoDataExchange(CDataExchange* pDX)
  31. {
  32.     CPropertyPage::DoDataExchange(pDX);
  33.     //{{AFX_DATA_MAP(CColorsPage)
  34.     DDX_Control(pDX, IDC_CLR_TEXT, m_clrbtnText);
  35.     DDX_Control(pDX, IDC_CLR_SEP, m_clrbtnSep);
  36.     DDX_Control(pDX, IDC_CLR_SELBACK, m_clrbtnSelBack);
  37.     DDX_Control(pDX, IDC_CLR_SEL, m_clrbtnSel);
  38.     DDX_Control(pDX, IDC_CLR_BOOKMARK, m_clrbtnBookmark);
  39.     DDX_Control(pDX, IDC_CLR_BACK, m_clrbtnBack);
  40.     //}}AFX_DATA_MAP
  41. }
  42.  
  43.  
  44. BEGIN_MESSAGE_MAP(CColorsPage, CPropertyPage)
  45.     //{{AFX_MSG_MAP(CColorsPage)
  46.     ON_BN_CLICKED(IDC_RESET, OnReset)
  47.     //}}AFX_MSG_MAP
  48. END_MESSAGE_MAP()
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CColorsPage message handlers
  52.  
  53. void CColorsPage::OnReset() 
  54. {
  55.     m_clrbtnText.currentcolor = RGB (0,0,0);
  56.     m_clrbtnSep.currentcolor = RGB (192,192,192);
  57.     m_clrbtnSelBack.currentcolor = RGB( 255, 255, 0 );
  58.     m_clrbtnSel.currentcolor = RGB( 0, 0, 0 );
  59.     m_clrbtnBookmark.currentcolor = RGB( 255, 0, 0 );
  60.     m_clrbtnBack.currentcolor = RGB (255,255,255);
  61.     Invalidate();
  62. }
  63.