Leaked source code of windows server 2003
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.

55 lines
1.0 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. _PROGRESS.H
  5. History:
  6. --*/
  7. #ifndef ESPUTIL__PROGRESS_H
  8. #define ESPUTIL__PROGRESS_H
  9. class CProgressDialog;
  10. class CInputBlocker;
  11. #pragma warning(disable:4251)
  12. class LTAPIENTRY CProgressDisplay : public CProgressiveObject
  13. {
  14. public:
  15. CProgressDisplay(CWnd *pParent = NULL);
  16. void SetDelay(clock_t);
  17. void DisplayDialog(BOOL);
  18. void SetProgressIndicator(UINT uiPercentage);
  19. void SetTitle(const CLString &);
  20. void SetTitle(HINSTANCE, DWORD);
  21. ~CProgressDisplay();
  22. virtual void SetCurrentTask(CLString const & strTask);
  23. virtual void SetDescriptionString(CLString const & strDescription);
  24. private:
  25. CProgressDialog *m_pDialog;
  26. UINT m_uiLastPercentage;
  27. clock_t m_ctLastTime;
  28. clock_t m_ctDisplayTime;
  29. BOOL m_fDisplay;
  30. BOOL m_fWaitCursor;
  31. SmartPtr<CInputBlocker> m_spBlocker;
  32. CLString m_strTitle;
  33. CLString m_strDescription;
  34. CWnd *m_pParent;
  35. };
  36. #pragma warning(default:4251)
  37. #endif