📄 password.cpp
字号:
// Password.cpp : implementation file
//
#include "stdafx.h"
#include "StGraph.h"
#include "Password.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPassword dialog
CPassword::CPassword(CWnd* pParent /*=NULL*/)
: CDialog(CPassword::IDD, pParent)
{
hide=false;
//{{AFX_DATA_INIT(CPassword)
m_password1 = _T("");
m_password2 = _T("");
//}}AFX_DATA_INIT
}
void CPassword::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPassword)
// DDX_Control(pDX, IDC_EDIT1, m_label_pass2);
DDX_Control(pDX, IDC_EDIT2, m_pass2);
DDX_Text(pDX, IDC_EDIT1, m_password1);
DDV_MaxChars(pDX, m_password1, 5);
DDX_Text(pDX, IDC_EDIT2, m_password2);
DDV_MaxChars(pDX, m_password2, 5);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPassword, CDialog)
//{{AFX_MSG_MAP(CPassword)
ON_WM_CANCELMODE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPassword message handlers
BOOL CPassword::OnInitDialog()
{
CDialog::OnInitDialog();
if (hide)
{m_pass2.EnableWindow (false);
//m_label_pass2.EnableWindow (false);
}
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CPassword::OnCancelMode()
{
CDialog::OnCancelMode();
// TODO: Add your message handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -