📄 advfiletree.h
字号:
/////////////////////////////////////////////////////////////////////////////////////////////////
// Author : tuwei //
// ECNU.CS.03 //
// 2006.9 ~ 2006.11 //
// Copyright (C) reserved //
// //
// //
// Function: //
// File tree Class. //
// //
// Credit: //
// If you use this control in your application please keep the file header in //
// your source or put author's name in your product. //
// //
// //
/////////////////////////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ADVFILETREE_H__BF2C6579_0BA7_4040_8A07_37A66325D97A__INCLUDED_)
#define AFX_ADVFILETREE_H__BF2C6579_0BA7_4040_8A07_37A66325D97A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct _data{
CString strText;
}DATA,*LPDATA;
class CAdvFileTree : public CTreeCtrl
{
public:
CAdvFileTree();
virtual ~CAdvFileTree();
public:
void RemoveItem(LPCTSTR filePath);
void AddItem(LPCTSTR filePath,BOOL isRoot = FALSE);
//{{AFX_VIRTUAL(CAdvFileTree)
//}}AFX_VIRTUAL
protected:
CImageList *m_imageList;
bool isImaged;
HTREEITEM rootItem;
protected:
bool CheckFileName(LPCTSTR filePath);
//{{AFX_MSG(CAdvFileTree)
void OnDeleteitem(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
#endif // !defined(AFX_ADVFILETREE_H__BF2C6579_0BA7_4040_8A07_37A66325D97A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -