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 >
Wrap
C/C++ Source or Header
|
2001-12-09
|
2KB
|
63 lines
// ColorsPage.cpp : implementation file
//
#include "stdafx.h"
#include "fshed.h"
#include "ColorsPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CColorsPage property page
IMPLEMENT_DYNCREATE(CColorsPage, CPropertyPage)
CColorsPage::CColorsPage() : CPropertyPage(CColorsPage::IDD)
{
//{{AFX_DATA_INIT(CColorsPage)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CColorsPage::~CColorsPage()
{
}
void CColorsPage::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CColorsPage)
DDX_Control(pDX, IDC_CLR_TEXT, m_clrbtnText);
DDX_Control(pDX, IDC_CLR_SEP, m_clrbtnSep);
DDX_Control(pDX, IDC_CLR_SELBACK, m_clrbtnSelBack);
DDX_Control(pDX, IDC_CLR_SEL, m_clrbtnSel);
DDX_Control(pDX, IDC_CLR_BOOKMARK, m_clrbtnBookmark);
DDX_Control(pDX, IDC_CLR_BACK, m_clrbtnBack);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CColorsPage, CPropertyPage)
//{{AFX_MSG_MAP(CColorsPage)
ON_BN_CLICKED(IDC_RESET, OnReset)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CColorsPage message handlers
void CColorsPage::OnReset()
{
m_clrbtnText.currentcolor = RGB (0,0,0);
m_clrbtnSep.currentcolor = RGB (192,192,192);
m_clrbtnSelBack.currentcolor = RGB( 255, 255, 0 );
m_clrbtnSel.currentcolor = RGB( 0, 0, 0 );
m_clrbtnBookmark.currentcolor = RGB( 255, 0, 0 );
m_clrbtnBack.currentcolor = RGB (255,255,255);
Invalidate();
}