📄 pswdlg.cpp
字号:
// PswDlg.cpp : implementation file
//
#include "stdafx.h"
#include "mbpc.h"
#include "PswDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPswDlg dialog
CPswDlg::CPswDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPswDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPswDlg)
m_nPswType = 0;
m_nPsw = 1111;
//}}AFX_DATA_INIT
}
void CPswDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPswDlg)
DDX_Control(pDX, IDC_COMBTYPE, m_CombPswType);
DDX_Control(pDX, IDC_PASSWORD, m_EditPsw);
DDX_CBIndex(pDX, IDC_COMBTYPE, m_nPswType);
DDX_Text(pDX, IDC_PASSWORD, m_nPsw);
DDV_MinMaxUInt(pDX, m_nPsw, 0, 9999);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPswDlg, CDialog)
//{{AFX_MSG_MAP(CPswDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPswDlg message handlers
BOOL CPswDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
this->m_CombPswType.SetFocus();
this->m_CombPswType.AddString("运行设置");
this->m_CombPswType.AddString("继保设置");
UpdateData(FALSE);
return FALSE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -