⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 houcrc32view.h

📁 该源码演示了如何计算字串的CRC32及文件的CRC32
💻 H
字号:
// HouCRC32View.h : CHouCRC32View 类的接口
//


#pragma once
//加入调用
#include "HyperLink.h"
//结束

class CHouCRC32View : public CView
{
protected: // 仅从序列化创建
	CHouCRC32View();
	DECLARE_DYNCREATE(CHouCRC32View)

// 属性
public:
	CHouCRC32Doc* GetDocument() const;
      
// 操作
public:
  
// 重写
	public:
	virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// 实现
public:

	
	virtual ~CHouCRC32View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	CStatic m_static;
	CStatic m_static_file;
    CStatic m_static_title;
     
	CStatic m_static_txt;
    CStatic m_static_mail;

	CBrush m_whiteBrush;
    CEdit m_edit1;
    CEdit m_edit2;
	CEdit m_edit3;
    CEdit m_edit4;
    CEdit m_edit5;
	CEdit m_edit6;
	CButton m_button;
	CButton m_filebutton;
	CButton m_browsebutton;
    CButton m_group1;
	CButton m_group2;

	CString m_openFileName;
	CString m_openFilePath;

    CHyperLink m_hyperlink_mail;
	

	// 生成的消息映射函数
protected:
	void CreateStaticText();
	void CreateEditBoxes();
	void CreatePushbutton();
	afx_msg void OnEditChange();
	afx_msg void OnPushbuttonClicked();
	afx_msg void OnPushbutton_file_Clicked();
	afx_msg void OnPushbutton_browse_Clicked();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtrlColor);
	//{{AFX_MSG(CControlApp2View)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // HouCRC32View.cpp 的调试版本
inline CHouCRC32Doc* CHouCRC32View::GetDocument() const
   { return reinterpret_cast<CHouCRC32Doc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -