DirView.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:2k
- #if !defined(AFX_DIRVIEW_H__4B0C2323_B1D6_463A_894B_477644183353__INCLUDED_)
- #define AFX_DIRVIEW_H__4B0C2323_B1D6_463A_894B_477644183353__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DirView.h : header file
- //
- #include "ShellTree.h"
- #include "FileView.h"
- /////////////////////////////////////////////////////////////////////////////
- // CDirView form view
- #ifndef __AFXEXT_H__
- #include <afxext.h>
- #endif
- class CDirView : public CFormView
- {
- // Attributes
- private:
- CShellTree m_treeExplorer;
- public:
- // Operations
- private:
- CFileView* GetFileView();
- BOOL GetItemFolderPath(CString &strFolderPath, HTREEITEM hItem);
- public:
- void ExpendItem(LPCTSTR lpszItemText);
- void DeleteChilds(LPCTSTR lpszItemText = NULL);
- void SetItemText(LPCTSTR lpszOldText, LPCTSTR lpszNewText);
- void PoplateItem(LPCTSTR lpszItemText = NULL);
- void DeleteItem(LPCTSTR lpszItemText);
- void MoveToUpFolder();
- protected:
- CDirView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CDirView)
- // Form Data
- public:
- //{{AFX_DATA(CDirView)
- enum { IDD = IDD_DIRVIEW };
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDirView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CDirView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- //{{AFX_MSG(CDirView)
- afx_msg void OnRclickTree1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnItemexpandingTree1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDirUp();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DIRVIEW_H__4B0C2323_B1D6_463A_894B_477644183353__INCLUDED_)