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

📄 dialog1dlg.cpp

📁 自己写的哈夫曼编码与译码   这个是基于对话框的
💻 CPP
字号:
// dialog1Dlg.cpp : implementation file
//

#include "stdafx.h"
#include "Huffman.h"
#include "dialog1Dlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Cdialog1Dlg dialog


Cdialog1Dlg::Cdialog1Dlg(CWnd* pParent /*=NULL*/)
	: CDialog(Cdialog1Dlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cdialog1Dlg)
	//}}AFX_DATA_INIT
}


void Cdialog1Dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cdialog1Dlg)
	DDX_Control(pDX, IDC_LIST2, m_list);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cdialog1Dlg, CDialog)
	//{{AFX_MSG_MAP(Cdialog1Dlg)
	ON_COMMAND(ID_SHOW_MENU, OnShowMenu)
	ON_NOTIFY(NM_SETFOCUS, IDC_LIST2, OnSetfocusList2)
	ON_NOTIFY(NM_CLICK, IDC_LIST2, OnClickList2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cdialog1Dlg message handlers


void Cdialog1Dlg::OnShowMenu() 
{
	// TODO: Add your command handler code here
	
}



BOOL Cdialog1Dlg::OnInitDialog(CHuffmanDlg &s) 
{
	CDialog::OnInitDialog();

	// TODO: Add extra initialization here



	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void Cdialog1Dlg::OnSetfocusList2(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here


	*pResult = 0;
}

void Cdialog1Dlg::OnClickList2(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here

	*pResult = 0;
}

⌨️ 快捷键说明

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