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

📄 lzwview.h

📁 用可视化环境,实现LZW压缩算法 编程环境:VC6.0
💻 H
字号:
// LZWView.h : interface of the CLZWView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LZWVIEW_H__0DF53509_DEAD_4701_9DE3_8D766E4CDBE9__INCLUDED_)
#define AFX_LZWVIEW_H__0DF53509_DEAD_4701_9DE3_8D766E4CDBE9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include<fstream>
#include"HashTable.h"
using namespace std;

class CLZWView : public CFormView
{
protected: // create from serialization only
	CLZWView();
	DECLARE_DYNCREATE(CLZWView)

public:
	//{{AFX_DATA(CLZWView)
	enum { IDD = IDD_LZW_FORM };
	CProgressCtrl	m_jindu2;
	CProgressCtrl	m_jindu1;
	CString	m_s;
	CString	m_s2;
	CString	m_s4;
	CString	m_s3;
	CString	m_2;
	//}}AFX_DATA

// Attributes
public:
	CLZWDoc* GetDocument();

// Operations
public:
	const char* Input;
	const char* Output;
	ifstream in,in1;
	ofstream out,out1;
	int alpha;
	const codes;
	unsigned char* s;
	ele* ht;
	int size;


	int LeftOver;
	int status;
	CDC     m_ZDC;
	CBitmap m_Z;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLZWView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	void Output2(int code);
	bool GetCode(int& code);
	void Decompress();
	void Output1(unsigned long pcode);
	void Compress();
	virtual ~CLZWView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLZWView)
	afx_msg void OnLiulan();
	afx_msg void OnJieya();
	afx_msg void OnYasuo();
	afx_msg void OnLiulan2();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in LZWView.cpp
inline CLZWDoc* CLZWView::GetDocument()
   { return (CLZWDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_LZWVIEW_H__0DF53509_DEAD_4701_9DE3_8D766E4CDBE9__INCLUDED_)

⌨️ 快捷键说明

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