Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

  1. #if !defined(AFX_PROGRESSDLG_H__226A22DA_6109_406B_9532_8BAB28EE559F__INCLUDED_)
  2. #define AFX_PROGRESSDLG_H__226A22DA_6109_406B_9532_8BAB28EE559F__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ProgressDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CProgressDlg dialog
  10. class CProgressDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CProgressDlg(CWnd* pParent = NULL); // standard constructor
  15. BOOL Create();
  16. void SetIncrement(int numDomains);
  17. void Increment() {m_progressCtrl.StepIt();UpdateData(FALSE);Sleep(2000);};
  18. void Done() {m_progressCtrl.SetPos(upperLimit);UpdateData(FALSE);Sleep(2000);};
  19. void SetDomain(CString domainName) {m_domainName = domainName;UpdateData(FALSE);};
  20. BOOL Canceled() {return bCanceled;};
  21. void CheckForCancel(void);
  22. // Dialog Data
  23. //{{AFX_DATA(CProgressDlg)
  24. enum { IDD = IDD_PROGRESSDLG };
  25. CProgressCtrl m_progressCtrl;
  26. CStatic m_DomainCtrl;
  27. CString m_domainName;
  28. //}}AFX_DATA
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CProgressDlg)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. protected:
  37. CWnd* m_pParent;
  38. int m_nID;
  39. short upperLimit, lowerLimit;
  40. // Generated message map functions
  41. //{{AFX_MSG(CProgressDlg)
  42. virtual BOOL OnInitDialog();
  43. virtual void OnCancel();
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. private:
  47. BOOL bCanceled;
  48. };
  49. //{{AFX_INSERT_LOCATION}}
  50. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  51. #endif // !defined(AFX_PROGRESSDLG_H__226A22DA_6109_406B_9532_8BAB28EE559F__INCLUDED_)