FtpDirView.h
资源名称:FTP总集.rar [点击查看]
上传用户:tjfeida
上传日期:2013-03-10
资源大小:1917k
文件大小:4k
源码类别:
Ftp客户端
开发平台:
Visual C++
- #if !defined(AFX_FTPDIRVIEW_H__DB51CADE_99B8_49CE_8ABD_706D89762412__INCLUDED_)
- #define AFX_FTPDIRVIEW_H__DB51CADE_99B8_49CE_8ABD_706D89762412__INCLUDED_
- /*********************************************
- **该文件是属于WolfFTP工程中的。如果有什么问题
- **请联系
- ** tablejiang@21cn.com
- **或者访问
- ** http://wolfftp.51.net
- **以得到最新的支持。
- *********************************************/
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // FtpDirView.h : header file
- //
- #include "HistroyCombo.h"
- #include "FtpDirList.h"
- #include "share.h"
- #include "QuickFtpDoc.h"
- #include "HistoryQueue.h"
- #include "TransmitFileDlg.h"
- /////////////////////////////////////////////////////////////////////////////
- // CFtpDirView view
- class CFtpDirView : public CView
- {
- protected:
- CFtpDirView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CFtpDirView)
- // Attributes
- public:
- CQuickFTPDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CFtpDirView)
- public:
- virtual void OnInitialUpdate();
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- 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 ~CFtpDirView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CFtpDirView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnAppAbout();
- afx_msg void OnNeedConnect();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnRemoteAbord();
- afx_msg void OnRemoteDelete();
- afx_msg void OnRemoteDownload();
- afx_msg void OnRemoteEdit();
- afx_msg void OnRemoteMkdir();
- afx_msg void OnRemoteRefresh();
- afx_msg void OnSelectAll();
- //}}AFX_MSG
- afx_msg void OnBeginDrag (NMHDR* pnmhdr, LRESULT* pResult);
- DECLARE_MESSAGE_MAP()
- protected:
- void DownLoadFile( LPSTR szName , BOOL bDir , LPCTSTR LocalPath , int iSelItem );
- void EnterParentDir( );
- void ShowCurrentListDirectory( LPSTR szPath );
- BOOL RefreshFtpList ( FTPITEM* pFtpItem );
- void ReceiveDirList( FTPITEM* pFtpItemHead );
- void EnterListCurDir( );
- void HandleCommand(int id, HWND hCtrlWnd, UINT uEvent);
- CHistroyCombo m_Combo ;
- //CButton m_BackBtn ;
- CBitmapButton m_UpButton ;
- public:
- BOOL EditSelectItem( );
- void RenameSelectItem( );
- void DelectItem( LPSTR szName , BOOL bDir);
- void DeleteSelectItem();
- BOOL DownLoadSelectItem( LPCTSTR LocalPath );
- void RefreshCurrentDirectory( );
- void AbordAction( );
- BOOL SetStateEnable( );
- BOOL SetStateDisable( );
- BOOL ConnectFtp( SITEINFO* pSite );
- BOOL DisconnectFtp( );
- void RefurbishDirList( );
- HWND m_hDisplayWnd ;
- CHistoryQueue m_HistoryQueue ;
- CFtpObject* m_pFtp ;
- LISTINFO m_ListInfo ;
- CFtpDirList m_ListCtrl ;
- CTransmitFileDlg* m_pBkTransmitDlg ;
- protected:
- BOOL AddItemToBkQueue( LPSTR , BOOL bDir , int iSelItem );
- BOOL AddSelectToBkTransmitQueue ( );
- BOOL DropItemOnList( CListCtrl* pDropWnd );
- CImageList* m_pDragImage;
- BOOL m_bDragging;
- int m_nDragIndex, m_nDropIndex;
- HTREEITEM m_hDropItem;
- CWnd* m_pDropWnd;
- };
- //#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_FTPDIRVIEW_H__DB51CADE_99B8_49CE_8ABD_706D89762412__INCLUDED_)