-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkent_reg_modify_everDlg.cpp
More file actions
54 lines (40 loc) · 1.59 KB
/
kent_reg_modify_everDlg.cpp
File metadata and controls
54 lines (40 loc) · 1.59 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
// kent_reg_modify_everDlg.cpp : implementation file
//
#include "stdafx.h"
#include "kent_reg_modify_everDlg.h"
#include "afxdialogex.h"
// kent_reg_modify_everDlg dialog
IMPLEMENT_DYNAMIC(kent_reg_modify_everDlg, CDialogEx)
kent_reg_modify_everDlg::kent_reg_modify_everDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(kent_reg_modify_everDlg::IDD, pParent)
{
}
kent_reg_modify_everDlg::~kent_reg_modify_everDlg()
{
}
void kent_reg_modify_everDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EDIT_MODIFY_USER, kent_reg_moditify_uesr);
DDX_Control(pDX, IDC_EDIT_MODIFY_SUPER_KEY, kent_reg_moditify_super_key);
DDX_Control(pDX, IDC_EDIT_MODIFY_LOGIN_KEY, kent_reg_moditify_login_key);
DDX_Control(pDX, IDC_STATIC_MODIFY_NOTICE, kent_modify_notice);
}
BEGIN_MESSAGE_MAP(kent_reg_modify_everDlg, CDialogEx)
ON_BN_CLICKED(IDC_BUTTON_MODIFY, &kent_reg_modify_everDlg::OnBnClickedButtonModify)
END_MESSAGE_MAP()
// kent_reg_modify_everDlg message handlers
void kent_reg_modify_everDlg::OnBnClickedButtonModify()
{
CString user,login_key,super_key;
kent_reg_moditify_uesr.GetWindowText(user);user.Trim();
kent_reg_moditify_super_key.GetWindowText(super_key);super_key.Trim();
kent_reg_moditify_login_key.GetWindowText(login_key);login_key.Trim();
//ÐÞ¸ÄÓû§×ÊÁÏ
CString tempstr = Kent_log_instance->kent_kss->ks_edit(Kent_log_instance->v_softcode,user,super_key,login_key,_T(""));
if(Kent_log_instance->iserrno(tempstr)){
kent_modify_notice.SetWindowText(Kent_log_instance->kent_kss->ks_GetMsg(tempstr));
}else{
kent_modify_notice.SetWindowText(tempstr);
}
}