LeftPaneView.h
上传用户:weimei12
上传日期:2022-08-11
资源大小:185k
文件大小:1k
- /********************************************************************
- created: 2008:12:17 14:22
- author: 李欣
- filename: c:MyProjectSimpleMailSimpleMailLeftPaneView.h
- classname: CLeftPaneView
- purpose: the treeview on the left
- *********************************************************************/
- #pragma once
- #include "afxcmn.h"
- class CRightPaneFrame;
- // CLeftPaneView form view
- class CLeftPaneView : public CFormView
- {
- DECLARE_DYNCREATE(CLeftPaneView)
- protected:
- CLeftPaneView(); // protected constructor used by dynamic creation
- virtual ~CLeftPaneView();
- public:
- enum { IDD = IDD_TREEVIEW };
- #ifdef _DEBUG
- virtual void AssertValid() const;
- #ifndef _WIN32_WCE
- virtual void Dump(CDumpContext& dc) const;
- #endif
- #endif
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnTvnSelchangedTree(NMHDR *pNMHDR, LRESULT *pResult);
- virtual void OnInitialUpdate();
- ///<summary>
- /// update the root name of the tree control
- ///</summary>
- void UpdateRootName(const CString& strRootName);
- CTreeCtrl m_treeCtrl;
- CImageList m_ImageList;
- CRightPaneFrame* m_pRightPaneFrame;
- ///<summary>
- /// the root name of the tree control
- ///</summary>
- CString m_strRootName;
- };