-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGaussianDialog.cpp
More file actions
56 lines (40 loc) · 1.09 KB
/
GaussianDialog.cpp
File metadata and controls
56 lines (40 loc) · 1.09 KB
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
// GaussianDialog.cpp: 实现文件
//
#include "pch.h"
#include "CImageProcessing.h"
#include "afxdialogex.h"
#include "GaussianDialog.h"
// GaussianDialog 对话框
IMPLEMENT_DYNAMIC(GaussianDialog, CDialogEx)
GaussianDialog::GaussianDialog(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_GaussianDialog, pParent)
, m_sigma(2.0)
{
}
GaussianDialog::~GaussianDialog()
{
}
void GaussianDialog::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_RADIO1, m_3);
DDX_Control(pDX, IDC_RADIO2, m_5);
DDX_Control(pDX, IDC_RADIO3, m_7);
DDX_Control(pDX, IDC_RADIO4, m_9);
DDX_Text(pDX, IDC_EDIT1, m_sigma);
}
BEGIN_MESSAGE_MAP(GaussianDialog, CDialogEx)
ON_BN_CLICKED(IDOK, &GaussianDialog::OnBnClickedOk)
ON_BN_CLICKED(IDCANCEL, &GaussianDialog::OnBnClickedCancel)
END_MESSAGE_MAP()
// GaussianDialog 消息处理程序
void GaussianDialog::OnBnClickedOk()
{
// TODO: 在此添加控件通知处理程序代码
CDialogEx::OnOK();
}
void GaussianDialog::OnBnClickedCancel()
{
// TODO: 在此添加控件通知处理程序代码
CDialogEx::OnCancel();
}