www.pudn.com > 人体步态跟踪识别bate版.rar > DirectoryTree.h


#if !defined(AFX_DIRECTORYTREE_H__08D4F1E1_A780_11D2_A177_0090270DD223__INCLUDED_) 
#define AFX_DIRECTORYTREE_H__08D4F1E1_A780_11D2_A177_0090270DD223__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
#define WM_USER_PATHCHANGED		WM_USER+10	// 消息(改变路径) 
 
///////////////////////////////////////////////////////////////////////////// 
 
class CDirectoryTree : public CTreeCtrl 
{ 
	DECLARE_DYNAMIC(CDirectoryTree) 
 
// Construction 
public: 
	CDirectoryTree(); 
 
// Attributes 
protected: 
	CString   m_szCurrentDir;		// 当前路径 
	char      m_cCurrentDrive;		// 当前驱动器 
	 
	int       n_TreeIconClosed; 
	int       n_TreeIconClosedSel; 
	int       n_TreeIconOpen; 
	int       n_TreeIconOpenSel; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDirectoryTree) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CDirectoryTree(); 
     
	BOOL    Initialize(void); 
	void    AddDirsToTree(CString, HTREEITEM); 
	void    BuildPathFromTree(HTREEITEM); 
	void    DeleteChildren(HTREEITEM); 
	void    DeletePeers(HTREEITEM); 
	void    SetBitmapList(CImageList *); 
	void    SetBitmapOrder(int, int, int, int); 
 
	// Inline functions 
	CString GetCurrentDir()         { return m_szCurrentDir; } 
	char    GetCurrentDrive()       { return m_cCurrentDrive; } 
	void    SetCurrentDrive(char c) { m_cCurrentDrive = c; } 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CDirectoryTree) 
	afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DIRECTORYTREE_H__08D4F1E1_A780_11D2_A177_0090270DD223__INCLUDED_)