📄 ltyzipdlg.h
字号:
// ltyzipDlg.h : header file
//
#pragma once
#include "afxcmn.h"
#include "resource.h"
#include "haffman.h"
// CltyzipDlg dialog
class CltyzipDlg : public CDialog
{
// Construction
public:
CltyzipDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_LTYZIP_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
public:
int m_nMax,m_nStep;
CString YaSuoSaveAddr;//存储压缩地址
CString JieYaSaveAddr;//存储解压地址
int m_iFileFlag ; /////////判断压缩解压情况
CHaffmanCode hufcode;
public:
float OpenandCloseFile(CString OpenFile,CString &CloseFile);//打开文件,调用函数进行编码压缩
float ChangtoCode(CString OpenFile,CString &CloseFile);//使用已有的编码,对文件压缩
void TranslateCodes(CString OpenFile,CString &CloseFile);//译码,解压缩
void OnTimer(UINT_PTR nIDEvent);
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
CProgressCtrl m_progressctrl;
public:
CProgressCtrl m_ProgressCtrlj;
public:
afx_msg void OnBnClickedOpen();
public:
afx_msg void OnBnClickedOpenHaf();
public:
afx_msg void OnBnClickedYaSuo();
public:
afx_msg void OnBnClickedJieYa();
public:
CString m_yasuodizhi;
public:
CString m_jieyadizhi;
public:
CString m_message;
public:
CString m_compress;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -