📄 rc4dlg.h
字号:
#if !defined(AFX_RC4DLG_H__C46B0F9A_1150_403A_978A_4633E13769C__INCLUDED_)
#define AFX_RC4DLG_H__C46B0F9A_1150_403A_978A_4633E13769C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Rc4Dlg.h : header file
//
#include <bitset>
#include "TaskbarNotifier.h"
#include "Rc4.h"
using namespace std;
/////////////////////////////////////////////////////////////////////////////
// CRc4Dlg dialog
class CRc4Dlg : public CDialog
{
// Construction
public:
// CComQIPtr<ISkin> pSkin2;
CTaskbarNotifier * m_wndTaskbarNotifier;
virtual BOOL PreTranslateMessage(MSG* pMsg);
CRc4Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CRc4Dlg)
enum { IDD = IDD_RC4 };
CListBox m_sBox;
CListBox m_kBox;
UINT m_key[4];
CString m_keyStream;
CString m_plainString;
int m_radio;
UINT m_cycleNum;
CString m_cipherString;
CString m_plainFile;
CString m_cipherFile;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRc4Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void ShowStringGroup(bool bShow);
void ShowFileGroup(bool bShow);
void OnOpenCipher();
void OnOpenPlain();
void DecipherFile();
void DecipherString();
void EncipherFile();
void EncipherString();
UINT NextRand();
void ShowKeyStream();
void GetFinalSArray();
void InitKey();
CToolTipCtrl m_tooltip;
UINT m_K[256];
UINT m_S[256];
int m_iStream;
int m_jStream;
virtual BOOL OnInitDialog();
int m_iMethod;
HCURSOR m_hArrow;
HCURSOR m_hHand;
HCURSOR m_hBeam;
HCURSOR m_hPen;
HCURSOR m_hMove;
// Generated message map functions
//{{AFX_MSG(CRc4Dlg)
afx_msg void OnRadioString();
afx_msg void OnRadioFile();
afx_msg void OnSetkey();
afx_msg void OnShowkey();
afx_msg void OnEncipher();
afx_msg void OnDecipher();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RC4DLG_H__C46B0F9A_1150_403A_978A_4633E13769C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -