📄 lghdlg.cpp
字号:
// LGHDlg.cpp : implementation file
//
#include "stdafx.h"
#include "LGH.h"
#include "LGHDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLGHDlg dialog
CLGHDlg::CLGHDlg(CWnd* pParent /*=NULL*/)
: CDialog(CLGHDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CLGHDlg)
m_strUserName = _T("");
m_strPassword = _T("");
m_strShowPass = _T("");
//}}AFX_DATA_INIT
}
void CLGHDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLGHDlg)
DDX_Control(pDX, IDC_CHECKSHOW, m_ButtonCheck);
DDX_Text(pDX, IDC_EDITNAME, m_strUserName);
DDX_Text(pDX, IDC_EDITPASS, m_strPassword);
DDX_Text(pDX, IDC_EDITSHOWPASS, m_strShowPass);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLGHDlg, CDialog)
//{{AFX_MSG_MAP(CLGHDlg)
ON_EN_CHANGE(IDC_EDITPASS, OnChangeEditpass)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLGHDlg message handlers
void CLGHDlg::OnChangeEditpass()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
if(m_ButtonCheck.GetCheck())
{
UpdateData();
m_strShowPass=m_strPassword;
UpdateData(FALSE);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -