SNCSetupDlg.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // SNCSetupDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include "afxwin.h"
  5. #include "global.h"
  6. #include "uninstall.h"
  7. // CSNCSetupDlg 对话框
  8. class CSNCSetupDlg : public CDialog
  9. {
  10. // 构造
  11. public:
  12. CSNCSetupDlg(CWnd* pParent = NULL); // 标准构造函数
  13. // 对话框数据
  14. enum { IDD = IDD_SNCSETUP_DIALOG };
  15. CProgressCtrl m_progress;
  16. CStatic m_currentinfo;
  17. protected:
  18. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  19. void SetProgressToMarquee(int nID);
  20. void SetProgressNoMarquee();
  21. void SetSystemError(int errCode);
  22. void SetUserAbort();
  23. void SetUnInstallFinished();
  24. // 实现
  25. protected:
  26. HICON m_hIcon;
  27. // 生成的消息映射函数
  28. virtual BOOL OnInitDialog();
  29. afx_msg void OnPaint();
  30. afx_msg void OnClose();
  31. afx_msg HCURSOR OnQueryDragIcon();
  32. afx_msg LRESULT onUserMsgUninstallState (WPARAM wParam, LPARAM lParam);
  33. DECLARE_MESSAGE_MAP()
  34. public:
  35. afx_msg void OnBnClickedButtonClose();
  36. private:
  37. CUninstall m_uninstall;
  38. ThreadParamInfo m_threadParam;
  39. void StartUninstall();
  40. bool m_bStop;
  41. public:
  42. CButton m_buttonclose;
  43. bool confirm;
  44. bool deluserdata ;
  45. };