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.

46 lines
914 B

  1. // Copyright (C) 1997 Microsoft Corporation
  2. //
  3. // Progress Indicator class
  4. //
  5. // 12-29-97 sburns
  6. #ifndef INDICATE_HPP_INCLUDED
  7. #define INDICATE_HPP_INCLUDED
  8. class ProgressIndicator
  9. {
  10. public:
  11. // obtain the HWND of a dialog containing a static text control and
  12. // a progress bar control. Then, constuct a ProgressIndicator
  13. // object from the HWND and the resource ids of the controls.
  14. ProgressIndicator(
  15. HWND parentDialog,
  16. int messageTextResID);
  17. ~ProgressIndicator();
  18. void
  19. Update(const String& message);
  20. private:
  21. void
  22. showControls(bool newState);
  23. HWND parentDialog;
  24. HWND messageText;
  25. bool showState;
  26. // not implemented: no copying allowed
  27. ProgressIndicator(const ProgressIndicator&);
  28. const ProgressIndicator& operator=(const ProgressIndicator&);
  29. };
  30. #endif // PROGRESS_HPP_INCLUDED