📄 filebar.h
字号:
// FileBar.h : header file
/////////////////////////////////////////////////////////////////////////////
#ifndef _FILEBAR_H_
#define _FILEBAR_H_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "FileTree.h"
#include <afxtempl.h>
#include "Msg.h"
////////////////////////////////////////////////////////////////////////////
//structure to store tree node
typedef struct {
// HTREEITEM hitem;
CString path;
CString name;
}Item;
/////////////////////////////////////////////////////////////////////////////
// CFileBar class
class CFileBar : public CControlBar
{
// Construction
public:
CFileBar();
virtual ~CFileBar();
// Attributes
public:
CFileTree m_TreeCtrl;
CImageList m_ImageList;
CList<Item,Item&> item_list;
HTREEITEM hitem0;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyBarBottom)
//}}AFX_VIRTUAL
// Implementation
public:
void DropIndex( LPCTSTR tname, LPCTSTR iname );
void DelFile( const CString& fname );
void ViewDb();
void Property();
void ExpandTree();
void PreInsertTree();
void insert_tree(Item &item, HTREEITEM hitem);
BOOL add_item(Item &);
void Expanding();
void InsertIndex( LPCTSTR tname, LPCTSTR iname );
// Generated message map functions
protected:
//{{AFX_MSG(CFileBar)
afx_msg void OnItemexpanding(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(MYBARBOTTOM_H_INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -