UpgradeDlg.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #pragma once
  2. #define WM_USER_UPGRADE_MESSAGE (WM_USER+1001)
  3. #define WM_USER_UPGRADE_PROGRESS (WM_USER+1002)
  4. #define WM_USER_UPGRADE_END (WM_USER+1003)
  5. typedef struct upgrade_info_t
  6. {
  7. HWND hMainWnd;
  8. } UPGRADE_INFO, *LPUPGRADE_INFO;
  9. /***
  10. 自动升级对话框
  11. */
  12. class CUpgradeDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CUpgradeDlg(CWnd* pParent = NULL);   // standard constructor
  17. virtual ~CUpgradeDlg();
  18. // Implementation
  19. public:
  20. BOOL m_bAutoRun;
  21. static HANDLE m_hEventKillUpgradeThread;
  22. static HANDLE m_hEventUpgradeThreadKilled;
  23. static HFILE m_hFileUpgrade;
  24. UPGRADE_INFO* m_pUpgradeInfo;
  25. // Dialog Data
  26. //{{AFX_DATA(CUpgradeDlg)
  27. enum { IDD = IDD_AUTOUPGRADE };
  28. CButton m_btnOK;
  29. CButton m_btnCancel;
  30. CStatic m_staticStatus;
  31. CStatic m_staticProgress;
  32. CButton m_btnProxySet;
  33. CEdit m_editExplain;
  34. CProgressCtrl m_ctrlProgress;
  35. //}}AFX_DATA
  36. public:
  37. void SetAutoRun(BOOL bAutoRun = TRUE);
  38. // Overrides
  39. protected:
  40. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  41. virtual BOOL OnInitDialog();
  42. virtual void OnOK();
  43. virtual void OnCancel();
  44. public:
  45. afx_msg void OnProxySet();
  46. afx_msg LRESULT OnUpgradeMessage(WPARAM wParam, LPARAM lParam);
  47. afx_msg LRESULT OnUpgradeProgress(WPARAM wParam, LPARAM lParam);
  48. afx_msg LRESULT OnUpgradeEnd(WPARAM wParam, LPARAM lParam);
  49. DECLARE_MESSAGE_MAP()
  50. };