bztestdlg.h

来自「bzlib,一个性能非常强劲的压缩库」· C头文件 代码 · 共 65 行

H
65
字号
// BZTestDlg.h : header file
//

#if !defined(AFX_BZTESTDLG_H__5F69F699_95D0_4847_A31C_14392E18435C__INCLUDED_)
#define AFX_BZTESTDLG_H__5F69F699_95D0_4847_A31C_14392E18435C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "../bz2.h"

/////////////////////////////////////////////////////////////////////////////
// CBZTestDlg dialog

class CBZTestDlg : public CDialog , protected CBZ2Compress , protected CBZ2Decompress
{
// Construction
public:
	CBZTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CBZTestDlg)
	enum { IDD = IDD_BZTEST_DIALOG };
	CString	m_szSource;
	CString	m_szTarget;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBZTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual unsigned int OnDecompressRead(char* &pBuffer);
	virtual void OnDecompressWrite(const char* pBuffer,unsigned int nLength);
	virtual void OnCompressWrite(const char* pBuffer,unsigned int nLength);
	virtual unsigned int OnCompressRead(char* &pBuffer);
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CBZTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBrowseSource();
	afx_msg void OnBrowseTarget();
	afx_msg void OnCompress();
	afx_msg void OnDecompress();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CFile m_fileTarget;
	CFile m_fileSource;
	char m_szReadBuffer[16384];
	char m_szWriteBuffer[16384];
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BZTESTDLG_H__5F69F699_95D0_4847_A31C_14392E18435C__INCLUDED_)

⌨️ 快捷键说明

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