⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 indexlist.h

📁 VC开发环境下
💻 H
字号:
#pragma once



// CIndexList view
#include "IndexEditorDoc.h"
#include "IndexEditorView.h"
#include "IndexDlg.h"

class CIndexList : public CTreeView
{
	DECLARE_DYNCREATE(CIndexList)

protected:
	CIndexList();           // protected constructor used by dynamic creation
	virtual ~CIndexList();

private:
	CIndexEditorView*			m_pGridView;
	HTREEITEM					m_hCurrentItem;
	CIndexDlg					m_dlgIndex;

public:
	CIndexEditorDoc* GetDocument() const;
	void     SetGridView(CIndexEditorView* pView);
	BOOL IsExist(const CString& strName);

protected:
	void ShowList();
	void ShowContextMenu(CPoint point);
	void GetSafeName(CString& strName);
public:
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	virtual void OnInitialUpdate();

protected:
	DECLARE_MESSAGE_MAP()
	virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/);

public:
	afx_msg void OnTvnKeydown(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnIndexAdd();
	afx_msg void OnIndexDel();
	afx_msg void OnIndexRename();
	afx_msg void OnTvnEndlabeledit(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult);
//	afx_msg void OnUpdateIndexAdd(CCmdUI *pCmdUI);
	afx_msg void OnUpdateIndexDel(CCmdUI *pCmdUI);
//	afx_msg void OnUpdateIndexRename(CCmdUI *pCmdUI);
	afx_msg void OnIndexFullAdd();
	afx_msg void OnIndexProperty();
	afx_msg void OnIndexExpandCollapse();
	afx_msg void OnUpdateIndexExpandCollapse(CCmdUI *pCmdUI);
};

#ifndef _DEBUG  // debug version in IndexEditorView.cpp
inline CIndexEditorDoc* CIndexEditorView::GetDocument() const
{ return reinterpret_cast<CIndexEditorDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

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