huffmandlg.h
来自「自己写的哈夫曼编码与译码 这个是基于对话框的」· C头文件 代码 · 共 80 行
H
80 行
// HuffmanDlg.h : header file
//
#if !defined(AFX_HUFFMANDLG_H__6608D65C_0FF1_4F82_9D83_32479A1B42D4__INCLUDED_)
#define AFX_HUFFMANDLG_H__6608D65C_0FF1_4F82_9D83_32479A1B42D4__INCLUDED_
#include "dialog1Dlg.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CHuffmanDlg dialog
typedef struct
{
int parent;
int weight;
char code[10];
int left,right;
int start;
}huffnode;
class CHuffmanDlg : public CDialog
{
// Construction
public:
int num;
int q;
Cdialog1Dlg *cdl;
int z;
void Coding_2();
void Coding_1();
void Creatree();
static huffnode *m_data;
static int n;
CHuffmanDlg(CWnd* pParent = NULL); // standard constructor
friend class Cdialog1Dlg;
// Dialog Data
//{{AFX_DATA(CHuffmanDlg)
enum { IDD = IDD_HUFFMAN_DIALOG };
CEdit m_edit2;
CString m_input;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHuffmanDlg)
public:
virtual void Serialize(CArchive& ar);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CHuffmanDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnShowMenu();
afx_msg void OnExitMenu();
afx_msg void OnButton2();
afx_msg void OnAboutMenu();
afx_msg void OnChangeEdit1();
afx_msg void OnFileOpen();
afx_msg void OnFileSaveAs();
afx_msg void OnButton3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HUFFMANDLG_H__6608D65C_0FF1_4F82_9D83_32479A1B42D4__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?