-
Notifications
You must be signed in to change notification settings - Fork 16
/
PostHFProperyPage.cpp
64 lines (43 loc) · 1.23 KB
/
PostHFProperyPage.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
// PostHFProperyPage.cpp : implementation file
//
#include "stdafx.h"
#include "HartreeFock.h"
#include "PostHFProperyPage.h"
// PostHFProperyPage
IMPLEMENT_DYNAMIC(PostHFProperyPage, CMFCPropertyPage)
PostHFProperyPage::PostHFProperyPage()
: CMFCPropertyPage(IDD_POSTHFPROPERTYPAGE)
{
computePostHF = (theApp.options.computePostHF ? BST_CHECKED : BST_UNCHECKED);
}
BEGIN_MESSAGE_MAP(PostHFProperyPage, CMFCPropertyPage)
ON_BN_CLICKED(IDC_CHECK1, &PostHFProperyPage::OnBnClickedCheck1)
END_MESSAGE_MAP()
// PostHFProperyPage message handlers
BOOL PostHFProperyPage::OnApply()
{
UpdateData();
ApplyValues();
return CMFCPropertyPage::OnApply();
}
void PostHFProperyPage::ApplyValues()
{
theApp.options.computePostHF = computePostHF == BST_CHECKED;
theApp.options.Save();
}
BOOL PostHFProperyPage::OnInitDialog()
{
CMFCPropertyPage::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void PostHFProperyPage::DoDataExchange(CDataExchange* pDX)
{
CMFCPropertyPage::DoDataExchange(pDX);
DDX_Check(pDX, IDC_CHECK1, computePostHF);
}
void PostHFProperyPage::OnBnClickedCheck1()
{
SetModified();
}