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

📄 红黑树view.h

📁 红黑树——一种数据结构的可视化画法
💻 H
字号:
// 红黑树View.h : interface of the CMyView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_VIEW_H__5C3E574B_8994_45CF_BBCC_9E936BF10E1D__INCLUDED_)
#define AFX_VIEW_H__5C3E574B_8994_45CF_BBCC_9E936BF10E1D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include"RBTree.h"
//kongjian ID
#define IDC_BND 100
#define IDC_BNI 101
#define IDC_LB1 200
#define IDC_LB2 201
#define IDC_KEY 300
#define IDC_NAM 301
#define IDC_TREE 302
#define IDC_SHOW 303
#define IDC_LST 304
#define IDC_IZE 305
#define IDC_RANK 306
#define IDC_SEL  307
#define IDC_ESEL  307


class CMyView : public CView
{
protected: // create from serialization only
	CMyView();
	DECLARE_DYNCREATE(CMyView)

// Attributes
public:
	CMyDoc* GetDocument();
	CButton* m_btnd,*m_btnshow,*m_btnr,*m_btnsel;
    CButton* m_btni;
    CStatic  *m_ek,*m_en,*ss,*ss1,*srank,*ssize;
	CTreeCtrl *tree;
	CEdit *name,*key;
	CEdit *Sele;
	CListBox *list;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	afx_msg void OnSelchangeLB();
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMyView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

      
// Generated message map functions
protected:
	//{{AFX_MSG(CMyView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);	
     afx_msg void   OnButtonInsert();
     afx_msg void   OnButtonDelete();
	 afx_msg void   OnButtonShow();
	 afx_msg void   OnButtonRank();
	  afx_msg void   OnButtonSel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 红黑树View.cpp
inline CMyDoc* CMyView::GetDocument()
   { return (CMyDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_VIEW_H__5C3E574B_8994_45CF_BBCC_9E936BF10E1D__INCLUDED_)

⌨️ 快捷键说明

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