📄 encryptguidlg.h
字号:
// EncryptGUIDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
#include "HexEdit.h"
// CEncryptGUIDlg 对话框
class CEncryptGUIDlg : public CDialog
{
// 构造
public:
CEncryptGUIDlg(CWnd* pParent = NULL); // 标准构造函数
// 对话框数据
enum { IDD = IDD_ENCRYPTGUI_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
virtual void OnCancel();
DECLARE_MESSAGE_MAP()
private:
int ConvertChar2Hex(unsigned char ch);
void GetHexFromString(const CString& str, unsigned char state[], int size);
CString GetStringFromHex(unsigned char state[], int size);
public:
CHexEdit m_editPlain;
CHexEdit m_editKey;
CHexEdit m_editCrypt;
CString m_strPlain;
CString m_strKey;
CString m_strEncrypt;
CButton m_btnDec;
CButton m_btnEnc;
CString m_strEditFin;
CString m_strEditFout;
int m_nAES;
afx_msg void OnBnClickedBtnenc();
afx_msg void OnBnClickedBtndec();
afx_msg void OnEnChangeEditplain();
afx_msg void OnEnChangeEditcrypt();
afx_msg void OnEnChangeEditkey();
afx_msg void OnBnClickedButtonFin();
afx_msg void OnBnClickedButtonFenc();
afx_msg void OnBnClickedButtonFout();
afx_msg void OnBnClickedButtonFdec();
afx_msg void OnBnClickedButtonok();
afx_msg void OnBnClickedButtoncancel();
afx_msg void OnClose();
afx_msg void OnBnClickedRadioAes();
afx_msg void OnBnClickedRadioDes();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -