-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommentWrite.cpp
53 lines (39 loc) · 1.03 KB
/
CommentWrite.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
// CommentWrite.cpp : 实现文件
//
#include "stdafx.h"
#include "ManageSystem.h"
#include "CommentWrite.h"
#include "afxdialogex.h"
// CCommentWrite 对话框
IMPLEMENT_DYNAMIC(CCommentWrite, CDialogEx)
CCommentWrite::CCommentWrite(CWnd* pParent /*=NULL*/)
: CDialogEx(CCommentWrite::IDD, pParent)
, comment(_T(""))
{
}
CCommentWrite::~CCommentWrite()
{
}
void CCommentWrite::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX, IDC_COMMENT, comment);
}
BEGIN_MESSAGE_MAP(CCommentWrite, CDialogEx)
ON_BN_CLICKED(IDOK, &CCommentWrite::OnBnClickedOk)
END_MESSAGE_MAP()
// CCommentWrite 消息处理程序
void CCommentWrite::OnBnClickedOk()
{
// TODO: 在此添加控件通知处理程序代码
int IDC=this->GetCheckedRadioButton(IDC_RADIO1,IDC_RADIO5);
switch(IDC)
{
case IDC_RADIO1:i_comment=5;break;
case IDC_RADIO2:i_comment=4;break;
case IDC_RADIO3:i_comment=3;break;
case IDC_RADIO4:i_comment=2;break;
case IDC_RADIO5:i_comment=1;break;
}
CDialogEx::OnOK();
}