?? lzwview.h
字號(hào):
// 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_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -