FileSource.h
资源名称:(vc).rar [点击查看]
上传用户:wpp2016
上传日期:2010-02-01
资源大小:1250k
文件大小:2k
源码类别:
Telnet服务器
开发平台:
Visual C++
- #if !defined(AFX_FILESOURCE_H__6FF23B21_F28E_11D3_8A76_00E04CDD95C8__INCLUDED_)
- #define AFX_FILESOURCE_H__6FF23B21_F28E_11D3_8A76_00E04CDD95C8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // FileSource.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CFileSource form view
- #include "dirtree.h"
- #ifndef __AFXEXT_H__
- #include <afxext.h>
- #endif
- //#include "filelist.h"
- class CFileSource : public CFormView
- {
- protected:
- CFileSource(); // protected constructor used by dynamic creation
- CImageList m_ImageList;
- CString remotedir;
- DECLARE_DYNCREATE(CFileSource)
- // Form Data
- public:
- //{{AFX_DATA(CFileSource)
- enum { IDD = IDD_FORMVIEW };
- CEdit m_cRemotedir;
- CMacButton m_refresh;
- CMacButton m_btsearch;
- CMacButton m_btupload;
- CMacButton m_btrun;
- CMacButton m_btdown;
- CMacButton m_btdel;
- CListCtrl m_remote;
- CDirTree m_local;
- //}}AFX_DATA
- // Attributes
- public:
- BOOL bDrv;
- // Operations
- public:
- void message(CString text);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CFileSource)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void AddDrv();
- virtual ~CFileSource();
- void AddFile(CObList &filelist);
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- //{{AFX_MSG(CFileSource)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnRefresh();
- afx_msg void OnDblclkRemote(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSearch();
- afx_msg void OnDown();
- afx_msg LRESULT OnSetActive(WPARAM wParam,LPARAM lParam);
- afx_msg void OnDblclkLocal(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnUpload();
- afx_msg void OnRun();
- afx_msg void OnDelete();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void EnableButton();
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_FILESOURCE_H__6FF23B21_F28E_11D3_8A76_00E04CDD95C8__INCLUDED_)