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

📄 resexplorertree.h

📁 能像Windows操作系统的资源管理器一样将资源按目录(文件夹文件)的形式组织起来。 考虑到资源建设的阶段性
💻 H
字号:
#if !defined(AFX_RESEXPLORERTREE_H__A49B6F3D_1127_45D2_99E7_522C3DA4488B__INCLUDED_)
#define AFX_RESEXPLORERTREE_H__A49B6F3D_1127_45D2_99E7_522C3DA4488B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ResExplorerTree.h : header file
//
#include "TreeCtrlX.h"
#include "ResDataProvider.h"
/////////////////////////////////////////////////////////////////////////////
// CResExplorerTree view

class CResExplorerTree : public CView
{
protected:
	CResExplorerTree();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CResExplorerTree)

// Attributes
public:
	CTreeCtrlX m_TreeCtrl;
	CImageList m_smallImageList;
	CImageList m_largeImageList; 
	CStatic m_wndCaption;
    //用于存储节点ID,相应的树节点序号及相应的树节点句柄
	CStringArray m_TVItemIDs;
    CPtrArray m_hTreeItems;
	int m_tvlparam;
	CResDataProvider m_ResDataProvider;
	BOOL isSetting;
	CImageList  m_ImageState;

// Operations
public:
	int GetIconIndex(const CString &csFileName);
	BOOL SetItemState(HTREEITEM hItem,int nState);

	BOOL InsertXMLItem(MSXML::IXMLDOMElement* node);
	long GetLParamByID(CString strID);
	CString GetIDByLParam(long lparam);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CResExplorerTree)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CResExplorerTree();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CResExplorerTree)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnItemexpandingTreeView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRclickTreeView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangingTreeView(NMHDR* pNMHDR, LRESULT* pResult);

	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RESEXPLORERTREE_H__A49B6F3D_1127_45D2_99E7_522C3DA4488B__INCLUDED_)

⌨️ 快捷键说明

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