📄 md5checksumtestdlg.h
字号:
// MD5ChecksumTestDlg.h : header file
//
#if !defined(AFX_MD5CHECKSUMTESTDLG_H__2BC79286_4C15_11D3_B2EE_A4A60E20D2C3__INCLUDED_)
#define AFX_MD5CHECKSUMTESTDLG_H__2BC79286_4C15_11D3_B2EE_A4A60E20D2C3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/*****************************************************************************************
CLASS: CMD5ChecksumTestDlg
DESCRIPTION: Demonstrates the use of the CMD5Checksum class
NOTES: None
*****************************************************************************************/
class CMD5ChecksumTestDlg : public CDialog
{
//{{AFX_VIRTUAL(CMD5ChecksumTestDlg)
public:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUALpublic:
//{{AFX_MSG(CMD5ChecksumTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSelfTest();
afx_msg void OnChangeEditStr();
afx_msg void OnButtonSelFile();
afx_msg void OnButtonAbout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
//constructor
CMD5ChecksumTestDlg(CWnd* pParent = NULL);
protected:
//data initialisation
bool LoadTestDataPath();
//button handling functions
virtual void OnOK();
virtual void OnCancel();
void ChecksumSelectedFile();
//automatic self test functions
bool SelfTest01();
bool SelfTest02();
bool SelfTest03();
bool SelfTest04();
bool SelfTest05();
bool SelfTest06();
bool SelfTest07();
bool SelfTest08();
bool SelfTest09();
bool SelfTest10();
bool SelfTest11();
bool SelfTest12();
bool SelfTest13();
bool SelfTest14();
bool SelfTest15();
bool SelfTest15a();
bool SelfTest16();
bool SelfTest17();
bool SelfTest18();
bool SelfTest18a();
bool SelfTest19();
bool SelfTest20();
bool SelfTest21();
bool SelfTest21a();
//user interface function
void EnableCtrls(bool bEnable = true);
//utility function
BOOL UpdateDataNow(BOOL bSaveAndValidate = TRUE);
private:
//{{AFX_DATA(CMD5ChecksumTestDlg)
enum { IDD = IDD_MD5CHECKSUMTEST_DIALOG };
CString m_strSelfTestStatus;
CString m_strChecksum;
CString m_strEntry;
CString m_strFileChecksum;
CString m_strSelectedFile;
//}}AFX_DATA
bool m_bTestDataFolderFound; //true if the test data folder has been found, false otherwise
CString m_strTestDataPath; //pathname of the test data folder
HICON m_hIcon; //see MFC
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MD5CHECKSUMTESTDLG_H__2BC79286_4C15_11D3_B2EE_A4A60E20D2C3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -