UpgradeDlg.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:1k
- #pragma once
- #define WM_USER_UPGRADE_MESSAGE (WM_USER+1001)
- #define WM_USER_UPGRADE_PROGRESS (WM_USER+1002)
- #define WM_USER_UPGRADE_END (WM_USER+1003)
- typedef struct upgrade_info_t
- {
- HWND hMainWnd;
- } UPGRADE_INFO, *LPUPGRADE_INFO;
- /***
- 自动升级对话框
- */
- class CUpgradeDlg : public CDialog
- {
- // Construction
- public:
- CUpgradeDlg(CWnd* pParent = NULL); // standard constructor
- virtual ~CUpgradeDlg();
- // Implementation
- public:
- BOOL m_bAutoRun;
- static HANDLE m_hEventKillUpgradeThread;
- static HANDLE m_hEventUpgradeThreadKilled;
- static HFILE m_hFileUpgrade;
- UPGRADE_INFO* m_pUpgradeInfo;
- // Dialog Data
- //{{AFX_DATA(CUpgradeDlg)
- enum { IDD = IDD_AUTOUPGRADE };
- CButton m_btnOK;
- CButton m_btnCancel;
- CStatic m_staticStatus;
- CStatic m_staticProgress;
- CButton m_btnProxySet;
- CEdit m_editExplain;
- CProgressCtrl m_ctrlProgress;
- //}}AFX_DATA
- public:
- void SetAutoRun(BOOL bAutoRun = TRUE);
- // Overrides
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual BOOL OnInitDialog();
- virtual void OnOK();
- virtual void OnCancel();
- public:
- afx_msg void OnProxySet();
- afx_msg LRESULT OnUpgradeMessage(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnUpgradeProgress(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnUpgradeEnd(WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- };