lefttreeview.h

来自「简单实用」· C头文件 代码 · 共 62 行

H
62
字号
#if !defined(AFX_LEFTTREEVIEW_H__2164100A_7C69_45DC_B115_6EA945FF9C0B__INCLUDED_)
#define AFX_LEFTTREEVIEW_H__2164100A_7C69_45DC_B115_6EA945FF9C0B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LeftTreeView.h : header file
//
#include "afxcview.h"
/////////////////////////////////////////////////////////////////////////////
// CLeftTreeView view

class CLeftTreeView : public CTreeView
{
protected:
	CLeftTreeView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CLeftTreeView)

// Attributes
public:

// Operations
public:
	void OnInitialUpdate();
	void AddPersonsToTree();
	void AddPersonToTree(CString strGroupName,CString strPersonName);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLeftTreeView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

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

	// Generated message map functions
protected:
	HTREEITEM m_hHitItem;
	CImageList m_ImageList;
	HTREEITEM AddGroupToTree(CString strGroupName);
	//{{AFX_MSG(CLeftTreeView)
	afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDel();
	afx_msg void OnUpdateDel(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_LEFTTREEVIEW_H__2164100A_7C69_45DC_B115_6EA945FF9C0B__INCLUDED_)

⌨️ 快捷键说明

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