FileSource.h
上传用户:wpp2016
上传日期:2010-02-01
资源大小:1250k
文件大小:2k
源码类别:

Telnet服务器

开发平台:

Visual C++

  1. #if !defined(AFX_FILESOURCE_H__6FF23B21_F28E_11D3_8A76_00E04CDD95C8__INCLUDED_)
  2. #define AFX_FILESOURCE_H__6FF23B21_F28E_11D3_8A76_00E04CDD95C8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // FileSource.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CFileSource form view
  10. #include "dirtree.h"
  11. #ifndef __AFXEXT_H__
  12. #include <afxext.h>
  13. #endif
  14. //#include "filelist.h"
  15. class CFileSource : public CFormView
  16. {
  17. protected:
  18. CFileSource();           // protected constructor used by dynamic creation
  19. CImageList m_ImageList;
  20. CString remotedir;
  21. DECLARE_DYNCREATE(CFileSource)
  22. // Form Data
  23. public:
  24. //{{AFX_DATA(CFileSource)
  25. enum { IDD = IDD_FORMVIEW };
  26. CEdit m_cRemotedir;
  27. CMacButton m_refresh;
  28. CMacButton m_btsearch;
  29. CMacButton m_btupload;
  30. CMacButton m_btrun;
  31. CMacButton m_btdown;
  32. CMacButton m_btdel;
  33. CListCtrl m_remote;
  34. CDirTree m_local;
  35. //}}AFX_DATA
  36. // Attributes
  37. public:
  38.    BOOL bDrv;
  39. // Operations
  40. public:
  41. void message(CString text);
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CFileSource)
  45. public:
  46. virtual void OnInitialUpdate();
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  50.     
  51. //}}AFX_VIRTUAL
  52. // Implementation
  53. protected:
  54. void AddDrv();
  55. virtual ~CFileSource();
  56. void AddFile(CObList &filelist);
  57. #ifdef _DEBUG
  58. virtual void AssertValid() const;
  59. virtual void Dump(CDumpContext& dc) const;
  60. #endif
  61. // Generated message map functions
  62. //{{AFX_MSG(CFileSource)
  63. afx_msg void OnSize(UINT nType, int cx, int cy);
  64. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  65. afx_msg void OnRefresh();
  66. afx_msg void OnDblclkRemote(NMHDR* pNMHDR, LRESULT* pResult);
  67. afx_msg void OnSearch();
  68. afx_msg void OnDown();
  69. afx_msg LRESULT OnSetActive(WPARAM wParam,LPARAM lParam);
  70. afx_msg void OnDblclkLocal(NMHDR* pNMHDR, LRESULT* pResult);
  71. afx_msg void OnUpload();
  72. afx_msg void OnRun();
  73. afx_msg void OnDelete();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. private:
  77. void EnableButton();
  78. };
  79. /////////////////////////////////////////////////////////////////////////////
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_FILESOURCE_H__6FF23B21_F28E_11D3_8A76_00E04CDD95C8__INCLUDED_)