#pragma once #include "TransferDlg.h" #include "../ConsoleApp(DN)/Struct.h" #include "afxcmn.h" #include "NoticeStruct.h" #include "SocketUtil.h" #define WMU_NOTICE_TRANS (WM_USER+1000) #define WMU_NOTICE_LAST_FILE_TRANS (WM_USER+2000) // CNoticeTrans ´ëÈ­ »óÀÚÀÔ´Ï´Ù. class CNoticeTrans : public CDialog { DECLARE_DYNAMIC(CNoticeTrans) public: CNoticeTrans(CWnd* pParent = NULL); // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù. CNoticeTrans(PTRANPARAM_STRUCT ptp, CString szTargetPath , CWnd* pParent = NULL); CNoticeTrans(PTRANPARAM_STRUCT ptp, int LastFileTrans , CWnd* pParent = NULL); virtual ~CNoticeTrans(); // ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù. enum { IDD = IDD_SEND_TRANSINFO}; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù. DECLARE_MESSAGE_MAP() CString m_szTargetPath; bool m_NoticeLastFileTrans; PTRANPARAM_STRUCT m_ptp; void NoticeTrans(void); void LastFileTransComplete(); void FillAdminInfo( tsvc_ddc_req_body_t*); CSocketUtil m_sutil; public: // afx_msg void OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult); CProgressCtrl m_NoticeProgress; CStatic m_NoticeText; virtual BOOL OnInitDialog(); // afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); afx_msg void OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult); // afx_msg void OnActivateApp(BOOL bActive, DWORD dwThreadID); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSetFocus(CWnd* pOldWnd); afx_msg LRESULT OnNoticeTrans(WPARAM, LPARAM); afx_msg LRESULT OnNoticeLastFileTrans(WPARAM, LPARAM); afx_msg void OnBnClickedCancel(); // afx_msg void OnStnClickedNoticeMsgbox(); void SetNoticeStep(int nStep); };