📄 stringdlg.h
字号:
// StringDlg.h : header file
//
#if !defined(AFX_STRINGDLG_H__05F43B73_9828_4F76_B9BF_12E9DBDF9001__INCLUDED_)
#define AFX_STRINGDLG_H__05F43B73_9828_4F76_B9BF_12E9DBDF9001__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DES.h"
/////////////////////////////////////////////////////////////////////////////
// CStringDlg dialog
class CStringDlg : public CDialog
{
// Construction
public:
CStringDlg(CWnd* pParent = NULL);
void ASC_HEX(CString strAsc, CString& strHex);// standard constructor
// Dialog Data
//{{AFX_DATA(CStringDlg)
enum { IDD = IDD_STRING_DIALOG };
CEdit m_editCode; //显示密文
CEdit m_editOrigin; //显示原文
int m_length; //原文长度
CString m_key;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStringDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CStringDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnDes();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
unsigned int m_padLen; //填充后长度
CString m_strCodeEnd; //密文
CString m_strPad; //填充后字符串
// int m_lengthCode; //去掉空格后字符串长度
CDES m_des;
int m_lastLength;//加密类
CString m_strCode; //去掉空格后字符串
CString m_strOrigin; //原文
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STRINGDLG_H__05F43B73_9828_4F76_B9BF_12E9DBDF9001__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -