📄 insdlg.cpp
字号:
// InsDlg.cpp : implementation file
//
#include "stdafx.h"
#include "FES.h"
#include "InsDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInsDlg dialog
CInsDlg::CInsDlg(CWnd* pParent /*=NULL*/)
: CDialog(CInsDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CInsDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CInsDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInsDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInsDlg, CDialog)
//{{AFX_MSG_MAP(CInsDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInsDlg message handlers
BOOL CInsDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
//在编辑框显示说明文字
CString ins;
ins=" FES使用说明:\r\n\r\n";
ins+="1. 设置密码\r\n";
ins+="(1). 方法一:选择“工具”->“设置”,打开设置对话框,输入密码。密码的长";
ins+="度为8-16位,中间不能有空格,设置密码后请牢记你的密码!";
ins+="\r\n";
ins+="(2). 方法二:点击工具栏上的扳手图标,打开密码设置对话框,设置密码同方法一。";
ins+="\r\n\r\n";
ins+="2. 文件加密\r\n";
ins+="(1). 选择“文件”->“打开”,选择你要加密的文件,然后确定。此时工具栏上加密的图标";
ins+="变为有效状态(红色),点击加密图标,就执行加密了,加密进度在状态栏可以看到。";
ins+="(2). 加密完成后,在所加密文件的目录中,将会看到一个后缀名为“.des”的文件,即是加密文件。\r\n";
ins+="\r\n";
ins+="3. 文件解密\r\n";
ins+="(1).选择“文件”->“打开”,选择你要加密的文件,然后确定。此时工具栏上解密的图标";
ins+="变为有效状态(蓝色),点击加密图标,就执行解密了,这个过程在下方的状态栏可以看到。\r\n";
ins+="(2).完成之后,同目录下会出现解密的文件。\r\n\r\n";
ins+="4. 注意事项\r\n";
ins+="(1). 文件加密是对字节进行操作,加密后的文件不能正常执行加密以前的操作。\r\n";
ins+="(2). 牢记密码,以防加密之后不能还原文件。安全起见,加密前最好对文件做备份!\r\n";
ins+="(3). 程序执行期间,不要关闭程序或者执行其他操作,以免引起数据的异常。\r\n";
SetDlgItemText(IDC_EDIT_INSTRUCTION,ins); //在编辑框中显示文本
return TRUE; // return TRUE unless you set the focus to a control
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -