DirListView.h
资源名称:FTP总集.rar [点击查看]
上传用户:tjfeida
上传日期:2013-03-10
资源大小:1917k
文件大小:3k
源码类别:
Ftp客户端
开发平台:
Visual C++
- #if !defined(AFX_DIRLISTVIEW_H__CF40910D_C78A_4A86_86D0_8B0A0B8476AF__INCLUDED_)
- #define AFX_DIRLISTVIEW_H__CF40910D_C78A_4A86_86D0_8B0A0B8476AF__INCLUDED_
- /*********************************************
- **该文件是属于WolfFTP工程中的。如果有什么问题
- **请联系
- ** tablejiang@21cn.com
- **或者访问
- ** http://wolfftp.51.net
- **以得到最新的支持。
- *********************************************/
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DirListView.h : header file
- //
- #include <afxcmn.h>
- #include "dirlistctrl.h"
- #include "DriverCombo.h"
- #include "share.h"
- #include "QuickFtpDoc.h"
- #include "ftpobject.h"
- #include "TransmitFileDlg.h"
- /////////////////////////////////////////////////////////////////////////////
- // CDirListView view
- class CDirListView : public CView
- {
- protected:
- CDirListView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CDirListView)
- // Attributes
- public:
- CQuickFTPDoc* GetDocument();
- // Operations
- public:
- BOOL UploadFile( LPCTSTR szName , LPCTSTR szRemotePath , int iSelItem );
- BOOL UploadSelectItem( LPCTSTR szRemotePath );
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDirListView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CDirListView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDirListView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnLocalDelete();
- afx_msg void OnLocalDownload();
- afx_msg void OnLocalRefresh();
- afx_msg void OnLocalUpload();
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnSelectAll();
- //}}AFX_MSG
- afx_msg void OnBeginDrag (NMHDR* pnmhdr, LRESULT* pResult);
- DECLARE_MESSAGE_MAP()
- protected:
- void HandleCommand( int id , HWND hCtrlWnd , UINT uEvent );
- CImageList m_DirImageList ;
- CDriverCombo m_Combo ;
- // CButton m_BackBtn ;
- CBitmapButton m_UpButton ;
- protected:
- BOOL AddSelectItemToBkTransmitQueue( );
- BOOL CheckThePointPos( int index );
- BOOL DropItemOnList( CListCtrl *pDropWnd);
- CImageList* m_pDragImage;
- BOOL m_bDragging;
- int m_nDragIndex, m_nDropIndex;
- HTREEITEM m_hDropItem;
- CWnd* m_pDropWnd;
- public:
- BOOL RefreshCurDir( );
- BOOL AddItemToBkQueue( LPSTR szName , LPCTSTR path , int iSelItem );
- CFtpObject* m_pFtp ;
- LISTINFO m_ListInfo ;
- CDirListCtrl m_ListCtrl ;
- CTransmitFileDlg* m_pBkTransmitDlg ;
- };
- //#ifndef _DEBUG // debug version in QuickFTPView.cpp
- //inline CQuickFTPDoc* CQuickFTPView::GetDocument()
- // { return (CQuickFTPDoc*)m_pDocument; }
- //#endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DIRLISTVIEW_H__CF40910D_C78A_4A86_86D0_8B0A0B8476AF__INCLUDED_)