?? crcfiledlg.h
字號:
// CRCfileDlg.h : header file
//
// Copyright ?2000 Richard A. Ellingson
// http://www.createwindow.com
// mailto:relling@hughes.net
#if !defined(AFX_CRCFILEDLG_H__E2171666_C9AF_11D3_96B1_00A0CC52C86A__INCLUDED_)
#define AFX_CRCFILEDLG_H__E2171666_C9AF_11D3_96B1_00A0CC52C86A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCRCfileDlg dialog
class CCRCfileDlg : public CDialog
{
// Construction
public:
CCRCfileDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCRCfileDlg)
enum { IDD = IDD_CRCFILE_DIALOG };
CString m_csCRCtext;
CString m_csFileName;
CString m_csURL;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCRCfileDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// ******* Begin custom code *******
ULONG crc32_table[256]; // Lookup table array
void Init_CRC32_Table(); // Builds Lookup table array
ULONG Reflect(ULONG ref, char ch); // Reflects CRC bits in the lookup table
void Open_File(); // Opens the file and reads it
int Get_CRC(CString& csData, DWORD dwSize); // Creates a CRC from a string buffer
// ******* End custom code *******
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCRCfileDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnCancel();
afx_msg void OnOpen();
afx_msg void OnDropFiles(HDROP hDropInfo);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButton1();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CRCFILEDLG_H__E2171666_C9AF_11D3_96B1_00A0CC52C86A__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -