📄 logdialog.cpp
字号:
// LogDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Work.h"
#include "LogDialog.h"
#include "CommonData.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLogDialog dialog
CLogDialog::CLogDialog(CWnd* pParent /*=NULL*/)
: CDialog(CLogDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CLogDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CLogDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLogDialog)
DDX_Control(pDX, IDC_SPW_EDIT, m_SPW);
DDX_Control(pDX, IDC_SNumber_EDIT, m_SNumber);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLogDialog, CDialog)
//{{AFX_MSG_MAP(CLogDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLogDialog message handlers
void CLogDialog::OnOK()
{
// TODO: Add extra validation here
char number[9],pw[7];
m_SNumber.GetWindowText(number,9);
m_SPW.GetWindowText(pw,7);
CCommonData::userNumber.Format("%s",number);
CCommonData::UserPassword.Format("%s",pw);
CDialog::OnOK();
}
void CLogDialog::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -