Init: Migrate SimpleRemoter (Since v1.3.1) to Gitea
This commit is contained in:
59
server/2015Remote/EditDialog.cpp
Normal file
59
server/2015Remote/EditDialog.cpp
Normal file
@@ -0,0 +1,59 @@
|
||||
// EditDialog.cpp : 实现文件
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "2015Remote.h"
|
||||
#include "EditDialog.h"
|
||||
#include "afxdialogex.h"
|
||||
|
||||
|
||||
// CEditDialog 对话框
|
||||
|
||||
IMPLEMENT_DYNAMIC(CEditDialog, CDialog)
|
||||
|
||||
CEditDialog::CEditDialog(CWnd* pParent)
|
||||
: CDialogLang(CEditDialog::IDD, pParent)
|
||||
, m_EditString(_T(""))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CEditDialog::~CEditDialog()
|
||||
{
|
||||
}
|
||||
|
||||
void CEditDialog::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
__super::DoDataExchange(pDX);
|
||||
DDX_Text(pDX, IDC_EDIT_STRING, m_EditString);
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CEditDialog, CDialog)
|
||||
ON_BN_CLICKED(IDOK, &CEditDialog::OnBnClickedOk)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CEditDialog 消息处理程序
|
||||
|
||||
BOOL CEditDialog::OnInitDialog()
|
||||
{
|
||||
__super::OnInitDialog();
|
||||
|
||||
SetDlgItemText(IDOK, _TR("确定"));
|
||||
SetDlgItemText(IDCANCEL, _TR("取消"));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void CEditDialog::OnBnClickedOk()
|
||||
{
|
||||
// TODO: 在此添加控件通知处理程序代码
|
||||
|
||||
UpdateData(TRUE);
|
||||
if (m_EditString.IsEmpty()) {
|
||||
MessageBeep(0);
|
||||
return; //不关闭对话框
|
||||
}
|
||||
__super::OnOK();
|
||||
}
|
||||
Reference in New Issue
Block a user