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.

53 lines
1.2 KiB

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