-
Notifications
You must be signed in to change notification settings - Fork 2
/
ColorSheet.cpp
53 lines (44 loc) · 1.31 KB
/
ColorSheet.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// ColorSheet.cpp : implementation file
//
#include "stdafx.h"
#include "OnStation.h"
#include "ColorSheet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CColorSheet
IMPLEMENT_DYNAMIC(CColorSheet, CPropertySheet)
//The warning generated by this code is OK because we do not use the
//this pointer until the OnInitDialog in the base members. -TVI
CColorSheet::CColorSheet(UINT nIDCaption,int iStartColorScheme,CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage),m_AgePage(this),m_DepthPage(this)
{
AddPage(&m_AgePage);
AddPage(&m_DepthPage);
if (iStartColorScheme==0)
{
SetActivePage(&m_AgePage);
}
else
{
SetActivePage(&m_DepthPage);
}
m_iRecommendedColorSchemeIndex=COLORSCHEME_AGE;
}
CColorSheet::~CColorSheet()
{
}
BEGIN_MESSAGE_MAP(CColorSheet, CPropertySheet)
//{{AFX_MSG_MAP(CColorSheet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CColorSheet message handlers
BOOL CColorSheet::IsDirty()
{
return m_AgePage.IsDirty() || m_DepthPage.IsDirty();
}