📄 lfsrdlg.h
字号:
#if !defined(AFX_LFSRDLG_H__01637AC2_C7F7_4185_B667_D006FD4024B8__INCLUDED_)
#define AFX_LFSRDLG_H__01637AC2_C7F7_4185_B667_D006FD4024B8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LfsrDlg.h : header file
//
#include <bitset>
#include <cmath>
#include <bitset>
#include "Lfsr.h"
#include "TaskbarNotifier.h"
using namespace std;
/////////////////////////////////////////////////////////////////////////////
// CLfsrDlg dialog
class CLfsrDlg : public CDialog
{
// Construction
public:
// CComQIPtr<ISkin> pSkin2;
CTaskbarNotifier * m_wndTaskbarNotifier;
virtual BOOL PreTranslateMessage(MSG* pMsg);
UINT m_decFbkKey;
UINT m_decInitKey;
CLfsrDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CLfsrDlg)
enum { IDD = IDD_LFSR };
CSpinButtonCtrl m_spin;
CString m_cipherFile;
CString m_cipherString;
CString m_plainFile;
CString m_plainString;
int m_radio;
CString m_fbkKey;
CString m_initKey;
UINT m_keySize;
UINT m_cycleNum;
CString m_keyString;
UINT m_hexNum;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLfsrDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void DecipherFile();
void DecipherString();
void EncipherFile();
void EncipherString();
void ShowFileGroup(bool bShow);
int m_iMethod;
void ShowStringGroup(bool bShow);
void ShowKey();
CToolTipCtrl m_tooltip;
virtual BOOL OnInitDialog();
UINT Convert_sBin2Int(CString sbin);
CString Convert_Hex2Bin(char hex);
UINT Convert_sHex2Int(CString m_hex);
bool CheckKey();
HCURSOR m_hArrow;
HCURSOR m_hHand;
HCURSOR m_hBeam;
HCURSOR m_hPen;
HCURSOR m_hMove;
// Generated message map functions
//{{AFX_MSG(CLfsrDlg)
afx_msg void OnSetkey();
afx_msg void OnEncipher();
afx_msg void OnDecipher();
afx_msg void OnDeltaposSpin(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRadioString();
afx_msg void OnRadioFile();
afx_msg void OnShowkey();
afx_msg void OnOpenPlain();
afx_msg void OnOpenCipher();
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_LFSRDLG_H__01637AC2_C7F7_4185_B667_D006FD4024B8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -