filebar.h

来自「用CJ60Lib界面库制作的SQL数据库客户与服务器程序。」· C头文件 代码 · 共 79 行

H
79
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?