-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBackupRestoreView.cpp
106 lines (70 loc) · 1.8 KB
/
BackupRestoreView.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// BackupRestoreView.cpp : 实现文件
//
#include "stdafx.h"
#include "BCGPChartExample.h"
#include "BackupRestoreView.h"
#include "afxdialogex.h"
// CBackupRestoreView 对话框
IMPLEMENT_DYNAMIC(CBackupRestoreView, CDialogEx)
CBackupRestoreView::CBackupRestoreView(CWnd* pParent /*=NULL*/)
: CDialogEx(CBackupRestoreView::IDD, pParent)
{
}
CBackupRestoreView::~CBackupRestoreView()
{
}
void CBackupRestoreView::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CBackupRestoreView, CDialogEx)
ON_WM_CLOSE()
ON_WM_CTLCOLOR()
ON_WM_SIZE()
ON_WM_PAINT()
END_MESSAGE_MAP()
// CBackupRestoreView 消息处理程序
BOOL CBackupRestoreView::OnInitDialog()
{
CDialogEx::OnInitDialog();
// TODO: 在此添加额外的初始化
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
HBRUSH CBackupRestoreView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialogEx::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: 在此更改 DC 的任何特性
// TODO: 如果默认的不是所需画笔,则返回另一个画笔
return hbr;
}
void CBackupRestoreView::OnSize(UINT nType, int cx, int cy)
{
CDialogEx::OnSize(nType, cx, cy);
// TODO: 在此处添加消息处理程序代码
}
void CBackupRestoreView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: 在此处添加消息处理程序代码
// 不为绘图消息调用 CDialogEx::OnPaint()
CRect rect;
GetClientRect(rect);
dc.FillSolidRect(rect, RGB(255, 255, 255));
dc.FillPath();
}
void CBackupRestoreView::OnOK()
{
// TODO: 在此添加专用代码和/或调用基类
CDialogEx::OnOK();
}
void CBackupRestoreView::OnClose()
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
CDialogEx::OnClose();
}
void CBackupRestoreView::OnCancel()
{
// TODO: 在此添加专用代码和/或调用基类
CDialogEx::OnCancel();
}