FileView.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:2k
- #if !defined(AFX_FILEVIEW_H__F0F25A83_EA13_4B9D_85CF_84B3A1606FA5__INCLUDED_)
- #define AFX_FILEVIEW_H__F0F25A83_EA13_4B9D_85CF_84B3A1606FA5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // FileView.h : header file
- //
- #include <afxcview.h>
- class CQuickView;
- class CDirView;
- /////////////////////////////////////////////////////////////////////////////
- // CFileView view
- class CFileView : public CListView
- {
- // Attributes
- private:
- public:
- // Operations
- private:
- CQuickView* GetQuickView(void);
- CDirView* GetDirView(void);
- BOOL MakeFileNameFromListItem(CString &strFileName, int iItem = -1);
- static int CALLBACK SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
- public:
- void ListFiles();
- protected:
- CFileView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CFileView)
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CFileView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CFileView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- // afx_msg void OnContextMenu(CWnd*, CPoint point);
- //{{AFX_MSG(CFileView)
- afx_msg void OnItemchanged(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnFileRename();
- afx_msg void OnUpdateFileRename(CCmdUI* pCmdUI);
- afx_msg void OnEndlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- //}}AFX_MSG
- afx_msg void OnDirButtons(UINT nID);
- afx_msg void OnUpdateDirButtons(CCmdUI *pCmdUI);
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_FILEVIEW_H__F0F25A83_EA13_4B9D_85CF_84B3A1606FA5__INCLUDED_)