explorerView.h
资源名称:explorer.rar [点击查看]
上传用户:jorden
上传日期:2022-08-09
资源大小:83k
文件大小:2k
源码类别:
TreeView控件
开发平台:
Visual C++
- // explorerView.h : interface of the CExplorerView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_EXPLORERVIEW_H__76658FC6_5804_4F8C_B115_9CDEA723183C__INCLUDED_)
- #define AFX_EXPLORERVIEW_H__76658FC6_5804_4F8C_B115_9CDEA723183C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CExplorerView : public CListView
- {
- protected: // create from serialization only
- CExplorerView();
- DECLARE_DYNCREATE(CExplorerView)
- // Attributes
- public:
- CExplorerDoc* GetDocument();
- CImageList *m_pImageList;
- CImageList *m_pImageListL;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CExplorerView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CExplorerView();
- void SetupImages(CImageList *mImageList, int iSize);
- UINT GetListViewIcon(CString s);
- CString GetFileType(CString s);
- LPTSTR GetNTS(CString cString);
- void AddToListView(WIN32_FIND_DATA* fd);
- void DeleteAllItems();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CExplorerView)
- afx_msg void OnDestroy();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- afx_msg void OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct);
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in explorerView.cpp
- inline CExplorerDoc* CExplorerView::GetDocument()
- { return (CExplorerDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_EXPLORERVIEW_H__76658FC6_5804_4F8C_B115_9CDEA723183C__INCLUDED_)