treeview.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
- // [!output TREE_VIEW_HEADER] : interface of the [!output TREE_VIEW_CLASS] class
- //
- #pragma once
- class [!output DOC_CLASS];
- class [!output TREE_VIEW_CLASS] : public CTreeView
- {
- protected: // create from serialization only
- [!output TREE_VIEW_CLASS]();
- DECLARE_DYNCREATE([!output TREE_VIEW_CLASS])
- // Attributes
- public:
- [!output DOC_CLASS]* GetDocument();
- // Operations
- public:
- // Overrides
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- [!if PRINTING]
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnDraw(CDC* pDC);
- [!endif]
- virtual void OnInitialUpdate(); // called first time after construct
- // Implementation
- public:
- virtual ~[!output TREE_VIEW_CLASS]();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in [!output TREE_VIEW_IMPL]
- inline [!output DOC_CLASS]* [!output TREE_VIEW_CLASS]::GetDocument()
- { return reinterpret_cast<[!output DOC_CLASS]*>(m_pDocument); }
- #endif