b_treesview.h
来自「B树代码以及演示」· C头文件 代码 · 共 75 行
H
75 行
// B_TreesView.h : interface of the CB_TreesView class
//
/////////////////////////////////////////////////////////////////////////////
#include "B_tree.h"
#if !defined(AFX_B_TREESVIEW_H__CE016649_1CE3_403E_978A_2939EAD065F5__INCLUDED_)
#define AFX_B_TREESVIEW_H__CE016649_1CE3_403E_978A_2939EAD065F5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CB_TreesView : public CView
{
protected: // create from serialization only
CB_TreesView();
DECLARE_DYNCREATE(CB_TreesView)
// Attributes
public:
CB_TreesDoc* GetDocument();
// Operations
public:
B_tree<char,4> tree;
CButton btnIns;
CButton btnDel;
CButton btnSea;
CEdit edit;
char ch;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CB_TreesView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
bool isSearch;
virtual ~CB_TreesView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CB_TreesView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnInsert();
afx_msg void OnDelete();
afx_msg void OnSearch();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in B_TreesView.cpp
inline CB_TreesDoc* CB_TreesView::GetDocument()
{ return (CB_TreesDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_B_TREESVIEW_H__CE016649_1CE3_403E_978A_2939EAD065F5__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?