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.

61 lines
1.2 KiB

  1. /*******************************************************************************
  2. *
  3. * led.h
  4. *
  5. * interface of CLed class
  6. *
  7. * copyright notice: Copyright 1997, Citrix Systems Inc.
  8. * Copyright (c) 1998 - 1999 Microsoft Corporation
  9. *
  10. * $Author: butchd $ Butch Davis
  11. *
  12. * $Log: M:\NT\PRIVATE\UTILS\CITRIX\WINUTILS\WINADMIN\VCS\LED.H $
  13. *
  14. * Rev 1.0 30 Jul 1997 17:11:38 butchd
  15. * Initial revision.
  16. *
  17. *******************************************************************************/
  18. #ifndef LED_INCLUDED
  19. ////////////////////////////////////////////////////////////////////////////////
  20. // CLed class
  21. //
  22. class CLed : public CStatic
  23. {
  24. /*
  25. * Member variables.
  26. */
  27. //{{AFX_DATA(CLed)
  28. //}}AFX_DATA
  29. private:
  30. HBRUSH m_hBrush;
  31. BOOL m_bOn;
  32. /*
  33. * Implementation.
  34. */
  35. public:
  36. CLed( HBRUSH hBrush );
  37. /*
  38. * Operations.
  39. */
  40. public:
  41. void Subclass( CStatic *pStatic );
  42. void Update(int nOn);
  43. void Toggle();
  44. /*
  45. * Message map / commands.
  46. */
  47. protected:
  48. //{{AFX_MSG(CLed)
  49. afx_msg void OnPaint();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. }; // end CLed class interface
  53. ////////////////////////////////////////////////////////////////////////////////
  54. #endif // LED_INCLUDED