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

📄 mydlg1.cpp

📁 AES加密软件
💻 CPP
字号:
// MyDlg1.cpp : implementation file
//

#include "stdafx.h"
#include "AES.h"
#include "MyDlg1.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyDlg1 dialog


CMyDlg1::CMyDlg1(CWnd* pParent /*=NULL*/)
	: CDialog(CMyDlg1::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMyDlg1)
	m_str3 = _T("");
	m_bIsUseMask = FALSE;
	//}}AFX_DATA_INIT
}


void CMyDlg1::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMyDlg1)
	DDX_Control(pDX, IDC_EDIT1, m_ctrKey);
	DDX_Text(pDX, IDC_EDIT1, m_str3);
	DDX_Check(pDX, IDC_CHECK1, m_bIsUseMask);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMyDlg1, CDialog)
	//{{AFX_MSG_MAP(CMyDlg1)
	ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyDlg1 message handlers


void CMyDlg1::OnCheck1() 
{
	// TODO: Add your control notification handler code here
	UpdateData();
	
	if (!m_bIsUseMask) {
		this->m_ctrKey.SetPasswordChar('*');
		} 
	else {
		this->m_ctrKey.SetPasswordChar(NULL);
	}
    m_bIsUseMask=true;
	this->Invalidate();
	
}

⌨️ 快捷键说明

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