www.pudn.com > 球和立方体.rar > OpenGlTreeView.h


#if !defined(AFX_OPENGLTREEVIEW_H__4B6AA197_F815_11D7_8B4A_5254AB1FD91D__INCLUDED_) 
#define AFX_OPENGLTREEVIEW_H__4B6AA197_F815_11D7_8B4A_5254AB1FD91D__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// OpenGlTreeView.h : header file 
// 
#include  
 
#include "MyLink.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// OpenGlTreeView view 
 
class OpenGlTreeView : public CTreeView 
{ 
protected: 
	OpenGlTreeView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(OpenGlTreeView) 
 
// Attributes 
public: 
   HTREEITEM hOpenGl_Root; 
   
// Operations 
public: 
	void AddNode(int i); 
 
	GRAPHDATA* MyFindNode(GraphNode* head , int iIndex); 
 
	int iCNode; 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(OpenGlTreeView) 
	public: 
	virtual void OnInitialUpdate(); 
	protected: 
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~OpenGlTreeView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(OpenGlTreeView) 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnChangeEditSize(); 
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_OPENGLTREEVIEW_H__4B6AA197_F815_11D7_8B4A_5254AB1FD91D__INCLUDED_)