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.

91 lines
2.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. progress.hxx
  7. This file contains the class declaration for the PROGRESS_CONTROL
  8. class.
  9. The PROGRESS_CONTROL class is a display object derived from the
  10. ICON_CONTROL class. PROGRESS_CONTROL adds a new method Advance()
  11. for cycling through a set of icons.
  12. FILE HISTORY:
  13. KeithMo 03-Oct-1991 Created.
  14. KeithMo 06-Oct-1991 Win32 Conversion.
  15. */
  16. #ifndef _PROGRESS_HXX
  17. #define _PROGRESS_HXX
  18. /*************************************************************************
  19. NAME: PROGRESS_CONTROL
  20. SYNOPSIS: Similar to ICON_CONTROL, but can cycle through a set of
  21. icons.
  22. INTERFACE: PROGRESS_CONTROL - Class constructor.
  23. ~PROGRESS_CONTROL - Class destructor.
  24. Advance - Move to next icon in cycle.
  25. PARENT: ICON_CONTROL
  26. HISTORY:
  27. KeithMo 03-Oct-1991 Created.
  28. **************************************************************************/
  29. class PROGRESS_CONTROL : public ICON_CONTROL
  30. {
  31. private:
  32. //
  33. // The number of icons to cycle through for this indicator.
  34. //
  35. UINT _cIcons;
  36. //
  37. // The resource ID of the first icon in the cycle.
  38. //
  39. UINT _idFirstIcon;
  40. //
  41. // The "current" icon. This number is always modulo _cIcons.
  42. //
  43. UINT _usCurrent;
  44. //
  45. // Auxilliary constructor.
  46. //
  47. VOID CtAux( VOID );
  48. public:
  49. //
  50. // Usual constructor\destructor goodies.
  51. //
  52. PROGRESS_CONTROL( OWNER_WINDOW * powner,
  53. CID cid,
  54. UINT idFirstIcon,
  55. UINT cIcons );
  56. ~PROGRESS_CONTROL( VOID );
  57. VOID Advance( INT nStep = 1 );
  58. }; // class PROGRESS_CONTROL
  59. #endif // _PROGRESS_HXX