forked from gopa810/gcal-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DPageAstroVedic.cpp
77 lines (63 loc) · 2.33 KB
/
DPageAstroVedic.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// DPageToday.cpp : implementation file
//
#include "stdafx.h"
#include "vcal5beta.h"
#include "DPageAstroVedic.h"
#include "showset.h"
#include "GCDisplaySettings.h"
/////////////////////////////////////////////////////////////////////////////
// DPageToday property page
IMPLEMENT_DYNCREATE(DPageToday, CPropertyPage)
DPageToday::DPageToday() : CPropertyPage(DPageToday::IDD)
{
//{{AFX_DATA_INIT(DPageToday)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
DPageToday::~DPageToday()
{
}
void DPageToday::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DPageToday)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DPageToday, CPropertyPage)
//{{AFX_MSG_MAP(DPageToday)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DPageToday message handlers
void DPageToday::OnOK()
{
CPropertyPage::OnOK();
}
BOOL DPageToday::OnSetActive()
{
// TODO: Add your specialized code here and/or call the base class
CheckDlgButton(IDC_CHECK1, GCDisplaySettings::getValue(29));
CheckDlgButton(IDC_CHECK2, GCDisplaySettings::getValue(30));
CheckDlgButton(IDC_CHECK3, GCDisplaySettings::getValue(31));
CheckDlgButton(IDC_CHECK4, GCDisplaySettings::getValue(32));
CheckDlgButton(IDC_CHECK5, GCDisplaySettings::getValue(33));
CheckDlgButton(IDC_CHECK6, GCDisplaySettings::getValue(45));
CheckDlgButton(IDC_CHECK7, GCDisplaySettings::getValue(46));
CheckDlgButton(IDC_CHECK8, GCDisplaySettings::getValue(47));
return CPropertyPage::OnSetActive();
}
BOOL DPageToday::OnKillActive()
{
// TODO: Add your specialized code here and/or call the base class
GCDisplaySettings::setValue(29, IsDlgButtonChecked(IDC_CHECK1));
GCDisplaySettings::setValue(30, IsDlgButtonChecked(IDC_CHECK2));
GCDisplaySettings::setValue(31, IsDlgButtonChecked(IDC_CHECK3));
GCDisplaySettings::setValue(32, IsDlgButtonChecked(IDC_CHECK4));
GCDisplaySettings::setValue(33, IsDlgButtonChecked(IDC_CHECK5));
GCDisplaySettings::setValue(45, IsDlgButtonChecked(IDC_CHECK6));
GCDisplaySettings::setValue(46, IsDlgButtonChecked(IDC_CHECK7));
GCDisplaySettings::setValue(47, IsDlgButtonChecked(IDC_CHECK8));
return CPropertyPage::OnKillActive();
}