📄 edstardlg.h
字号:
// EDstarDlg.h : header file
//
//功能:通用文件加解密
// 作者:徐景周
//日期:2001年7月18日
//
#if !defined(AFX_EDSTARDLG_H__CC7DA586_7BD3_11D5_9008_9EF7F5716B68__INCLUDED_)
#define AFX_EDSTARDLG_H__CC7DA586_7BD3_11D5_9008_9EF7F5716B68__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "WBButton.h" //位图按钮类
#include "StaticFilespec.h" //扩展静态框类
#include "FlatEdit.h" //扁平编辑框显示类
/////////////////////////////////////////////////////////////////////////////
// CEDstarDlg dialog
class CEDstarDlg : public CDialog
{
// Construction
public:
CEDstarDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CEDstarDlg)
enum { IDD = IDD_EDSTAR_DIALOG };
CFlatEdit m_Password1;
CStaticFilespec m_SourcePath1;
CStaticFilespec m_TargetPath1;
CWBButton m_Cancel;
CWBButton m_Encrypt;
CWBButton m_Decrypt;
CWBButton m_Browse2;
CWBButton m_Browse1;
CString m_SourcePath;
CString m_TargetPath;
CString m_Password;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEDstarDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CString m_Filename; //对原文件进行备份文件名
//加密文件算法涵数
BOOL EncryptFile(CString filename,char *password);
//解密文件算法涵数
BOOL DecryptFile(CString filename,char *password);
// Generated message map functions
//{{AFX_MSG(CEDstarDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBrowse1();
afx_msg void OnBrowse2();
afx_msg void OnEncrypt();
afx_msg void OnDecrypt();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EDSTARDLG_H__CC7DA586_7BD3_11D5_9008_9EF7F5716B68__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -