password.cpp

来自「将文本文件隐藏在一个BMP文件里 达到信息隐藏的目的」· C++ 代码 · 共 76 行

CPP
76
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?