typelibtreeview.h
来自「这是VCF框架的代码」· C头文件 代码 · 共 81 行
H
81 行
// tlbtree.h : header file//// This is a part of the Microsoft Foundation Classes C++ library.// Copyright (C) 1992-1998 Microsoft Corporation// All rights reserved.//// This source code is only intended as a supplement to the// Microsoft Foundation Classes Reference and related// electronic documentation provided with the library.// See these sources for detailed information regarding the// Microsoft Foundation Classes product.#ifndef __TLBTREE_H__#define __TLBTREE_H__#include "TreeItem.h"/////////////////////////////////////////////////////////////////////////////// CTypeLibTreeView view#define ID_TREEVIEW 42class CTypeLibTreeView : public CView{public: CTypeLibTreeView( ITypeLib* pTLB=NULL ); // protected constructor used by dynamic creation virtual ~CTypeLibTreeView(); DECLARE_DYNCREATE(CTypeLibTreeView)// Attributespublic: CTreeCtrl m_tree ; ITypeLib* m_ptlb ; enum {IMGID_TYPELIB = 0, IMGID_TYPEINFO_C, IMGID_TYPEINFO_O }; CImageList m_images ; HTREEITEM m_hTypeInfos ;// Operationspublic: void DeleteTreeItems( HTREEITEM htree ) ;// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTypeLibTreeView) public: virtual void OnInitialUpdate(); protected: virtual void OnDraw(CDC* pDC); virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); //}}AFX_VIRTUAL// Implementationprotected:#ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const;#endif // Generated message map functionsprotected: //{{AFX_MSG(CTypeLibTreeView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG afx_msg void OnTreeSelchanged(NMHDR* pNMHDR, LRESULT* pResult) ; afx_msg void OnTreeItemExpanding(NMHDR* pNMHDR, LRESULT* pResult) ; afx_msg void OnTreeItemExpanded(NMHDR* pNMHDR, LRESULT* pResult) ; afx_msg void OnTreeItemReturn(NMHDR* pNMHDR, LRESULT* pResult) ; afx_msg void OnTreeDeleteItem(NMHDR* pNMHDR, LRESULT* pResult) ; DECLARE_MESSAGE_MAP()};#endif // __TLBTREE_H__/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?