📄 desdlg.h
字号:
// DESDlg.h : header file
//
#if !defined(AFX_DESDLG_H__F4BAAD27_4E72_11D4_B33E_A3B07511EC5B__INCLUDED_)
#define AFX_DESDLG_H__F4BAAD27_4E72_11D4_B33E_A3B07511EC5B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CDESDlg dialog
#include "crc32.h" // CCRC32 head file
#include "dodes.h" // DES algrithom head file
class CDESDlg : public CDialog
{
CCRC32 crc;
CDES des;
//next 4 are used for processECPFiel(..)
CFileStatus m_fileStatus;
unsigned int m_CRC;
BOOL m_CRCOK;
unsigned int m_ECPFileStart; //the end of the head, the start
//point of the encrypted data
// Construction
public:
CDESDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDESDlg)
enum { IDD = IDD_DES_DIALOG };
CProgressCtrl m_ctrlProgress;
CString m_strSourceFile;
CString m_strDestinationFile;
CString m_strPassword;
CString m_strPassword2;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDESDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
BOOL samePwd(void); //test password and confirm is
//identical
BOOL allReady(void); //check all ready for start ENC/DEC
BOOL doEncryption(void);
BOOL doDecryption(void);
BOOL processECPFile(CString strPathName);
//CString getFilePathName(BOOL open=TRUE, CString defExt="ECP",CString fileName="",
// CString filter="加密文件(*.ECP)|*.ECP|所有文件(*.*)|*.*||");
CString CDESDlg::getFilePathName(BOOL open=TRUE,CString fileName="");
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDESDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtngetsource();
afx_msg void OnGetdestination();
afx_msg void OnBtngo();
afx_msg void OnHidepassword();
afx_msg void OnKillfocusEdtconfirmpassword();
afx_msg void OnChangeEdtsource();
afx_msg void OnChangeEdtdestination();
afx_msg void OnChangeEdtconfirmpassword();
afx_msg void OnChangeEdtpassword();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DESDLG_H__F4BAAD27_4E72_11D4_B33E_A3B07511EC5B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -