| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- // SNCSetupDlg.h : 头文件
- //
- #pragma once
- #include "afxwin.h"
- #include "global.h"
- #include "autoupdate.h"
- // CSNCSetupDlg 对话框
- class CSNCSetupDlg : public CDialog
- {
- // 构造
- public:
- CSNCSetupDlg(CWnd* pParent = NULL); // 标准构造函数
- // 对话框数据
- enum { IDD = IDD_SNCSETUP_DIALOG };
- CProgressCtrl m_progress;
- CStatic m_currentinfo;
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- void SetProgressToMarquee(int nID);
- void SetProgressNoMarquee();
- void SetNetworkNotAvailable();
- void SetNetworkAvailable();
- void SetDownloadError();
- void SetSetupAvailable();
- void SetSystemError(int errCode);
- void SetUserAbort();
- void SetVersionUpdated();
- void SetVersionNotNeedUpdate();
- void SetSetupFinished();
- // 实现
- protected:
- HICON m_hIcon;
-
- // 生成的消息映射函数
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg void OnClose();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg LRESULT onUserMsgUpgradeSate (WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT onUserMsgUpgradeProgress (WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT onUserMsgUpgradeChilidProgress (WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT onUserMsgUpgradeRange (WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnBnClickedButtonClose();
-
- private:
- int m_step;
- int m_filecount;
- CAutoUpdate m_update;
- ThreadParamInfo m_threadParam;
- void StartUpdate();
- void DownloadFiles();
- void UpdateProgress();
- COleDateTime dlStart;
- COleDateTimeSpan dlElapsed;
-
- bool m_bStop;
- public:
-
- CButton m_buttonclose;
- bool confirm;
- bool deluserdata ;
- bool isproduct;
- };
|