📄 filetranscltview.h
字号:
////////////////////////////////////////////////////////////////////////////
// //
// CopyRight by Tidge, Jan. 15th, 2007 //
// //
////////////////////////////////////////////////////////////////////////////
// FileTransCltView.h : interface of the CFileTransCltView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "ExtProgressCtrl.h"
//}}AFX_INCLUDES
#if !defined(AFX_FILETRANSCLTVIEW_H__8F5171ED_A88F_4146_89AE_F09E185ACFD9__INCLUDED_)
#define AFX_FILETRANSCLTVIEW_H__8F5171ED_A88F_4146_89AE_F09E185ACFD9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ExtnTreeCtrl.h"
#include "SetParam.h"
class CFileTransCltView : public CFormView
{
protected: // create from serialization only
CFileTransCltView();
DECLARE_DYNCREATE(CFileTransCltView)
public:
//{{AFX_DATA(CFileTransCltView)
enum { IDD = IDD_FILETRANSCLT_FORM };
CExtnTreeCtrl m_FileTreeBrowse;
CIPAddressCtrl m_IPAddress;
CString m_fullPath;
CExtProgressCtrl m_progCtrl;
//}}AFX_DATA
// Attributes
public:
CFileTransCltDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFileTransCltView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CSetParam setParam;
HTREEITEM hCurrent;
virtual ~CFileTransCltView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
static DWORD WINAPI ThreadRequest(LPVOID lpParameter);
// Generated message map functions
protected:
//{{AFX_MSG(CFileTransCltView)
afx_msg void OnConnect();
afx_msg void OnDblclkFilebrowse(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchangedFilebrowse(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclickFilebrowse(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSetparam();
afx_msg void OnDownload();
afx_msg void OnSaveas();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
static void Memcpy(char *dest,char *sour,unsigned int num);
static void FillInFile(SOCKET socket,int thrInfo,int packIndex,char* pPackCont);
void DownloadFile(CString fPath);
void FillTree();
};
#ifndef _DEBUG // debug version in FileTransCltView.cpp
inline CFileTransCltDoc* CFileTransCltView::GetDocument()
{ return (CFileTransCltDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FILETRANSCLTVIEW_H__8F5171ED_A88F_4146_89AE_F09E185ACFD9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -