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

📄 treedlg.h

📁 二叉树的实现 构成二叉树的基本元素是二叉树中的结点
💻 H
字号:
#if !defined(AFX_TREEDLG_H__855A7A5D_B041_4FF7_B882_9936359ADA77__INCLUDED_)
#define AFX_TREEDLG_H__855A7A5D_B041_4FF7_B882_9936359ADA77__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TreeDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTreeDlg dialog

class CTreeDlg : public CDialog
{
// Construction
public:
	CTreeDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTreeDlg)
	enum { IDD = IDD_DIALOG1 };
	CTreeCtrl	m_tree;
	UINT	m_ichildcount;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTreeDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	//功能:在某个节点上加上子节点
	//hTreeItemvec:返回的子节点的句柄集
	//ctree:具体的树对象
	//hItem:需要追加子节点的某个节点
	//ichildcount追加的子节点的个数
	int addtree(vector<HTREEITEM>&hTreeItemvec,CTreeCtrl& ctree,const HTREEITEM& hParentItem,const int ichildcount);
	// Generated message map functions
	//{{AFX_MSG(CTreeDlg)
	virtual void OnOK();
	afx_msg void OnButtonPrint();
	afx_msg void OnButtonPrint2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TREEDLG_H__855A7A5D_B041_4FF7_B882_9936359ADA77__INCLUDED_)

⌨️ 快捷键说明

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