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

📄 dlgrecoveset.cpp

📁 COM 组建的开发
💻 CPP
字号:
// DlgRecoveSet.cpp : implementation file
//

#include "stdafx.h"
#include "resource.h"
#include "DlgRecoveSet.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgRecoveSet dialog


CDlgRecoveSet::CDlgRecoveSet(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgRecoveSet::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgRecoveSet)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDlgRecoveSet::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgRecoveSet)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgRecoveSet, CDialog)
	//{{AFX_MSG_MAP(CDlgRecoveSet)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgRecoveSet message handlers

void CDlgRecoveSet::OnOK() 
{
	// TODO: Add extra validation here
	GetDlgItemText(IDC_EDIT_PWD,m_strPwd);
	int nLen = m_strPwd.GetLength();
	if (0 != nLen)
	{
		if ((nLen<4)||(nLen>32))
		{
			MessageBox("密码的正确取值范围为空或者4~32!","提示",MB_ICONINFORMATION|MB_OK);
			return;
		}
	}
	CDialog::OnOK();
}

⌨️ 快捷键说明

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