⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 passworddlg.cpp

📁 实现用户验证..画圆 显示当前系统时间 对VC很有帮助 1):修改字体背景色 2):修改字体颜色 3):修改字体属性 4):在工作区画硬币(可以通过菜单栏、工具栏及右键来实现
💻 CPP
字号:
// PasswordDlg.cpp : implementation file
//

#include "stdafx.h"
#include "RJ030413.h"
#include "PasswordDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPasswordDlg dialog


CPasswordDlg::CPasswordDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CPasswordDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPasswordDlg)
	m_strUserName = _T("");
	m_strShowPass = _T("");
	m_strPassword = _T("");
	//}}AFX_DATA_INIT
}


void CPasswordDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPasswordDlg)
	DDX_Control(pDX, IDC_CHECKSHOW, m_ButtonCheck);
	DDX_Text(pDX, IDC_EDITNAME, m_strUserName);
	DDV_MaxChars(pDX, m_strUserName, 6);
	DDX_Text(pDX, IDC_EDITSHOWPASS, m_strShowPass);
	DDV_MaxChars(pDX, m_strShowPass, 6);
	DDX_Text(pDX, IDC_EDITPASS, m_strPassword);
	DDV_MaxChars(pDX, m_strPassword, 6);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPasswordDlg, CDialog)
	//{{AFX_MSG_MAP(CPasswordDlg)
	ON_EN_CHANGE(IDC_EDITPASS, OnChangeEditpass)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPasswordDlg message handlers

void CPasswordDlg::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;//将口令送给IDC_EDITSHOWPASS的成员变量
		UpdateData(FALSE);//在编辑框IDC_EDITSHOWPASS中显示口令
	}
	/////////////////////////////////////////////////////////////////////////
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -