#if !defined(AFX_PROGRESSDLG_H__FEB27F4A_6301_4A90_952A_2DDACAE83F70__INCLUDED_) #define AFX_PROGRESSDLG_H__FEB27F4A_6301_4A90_952A_2DDACAE83F70__INCLUDED_ #include "Device.h" #include "Zmodem.h" #include "MyCopyFile.h" #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define WM_BYTERECV WM_USER + 1001 // ProgressDlg.h : header file // ///////////////////////////////////////////////////////////////////////////// // CProgressDlg dialog class CProgressDlg : public CDialog { // Construction public: CProgressDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CProgressDlg) enum { IDD = IDD_PROGRESS }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA afx_msg LRESULT ShowProgress(WPARAM f_wparam, LPARAM f_lparam); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CProgressDlg) public: virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CProgressDlg) virtual BOOL OnInitDialog(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnClose(); //}}AFX_MSG DECLARE_MESSAGE_MAP() public: //不行再改指针 CString m_szLocFilePath; CString m_szHostFileName; CString m_szHostFilePath; CString m_szLocFileName; CDevice *m_device; BOOL m_RecvOrSend; //这个标记是send(发送文件 1)还是receive(接收文件 0); BOOL m_exCode; private: static UINT SendFile(LPVOID wparam); static UINT RecvFile(LPVOID wparam); void PrintLog(CString& strLog); Zmodem *m_zmodem; CWinThread *m_pThread; DWORD m_dwTotalFileSize; DWORD m_dwTotalRcvSize; CMyCopyFile m_myCopyFile; int m_nThreadStatus; //log FILE *m_pFile; CString m_log; //log }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PROGRESSDLG_H__FEB27F4A_6301_4A90_952A_2DDACAE83F70__INCLUDED_)