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. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*******************************************************************************
  3. *
  4. * led.h
  5. *
  6. * interface of CLed class
  7. *
  8. * copyright notice: Copyright 1995, Citrix Systems Inc.
  9. *
  10. * $Author: butchd $ Butch Davis
  11. *
  12. * $Log: N:\NT\PRIVATE\UTILS\CITRIX\WINUTILS\COMMON\VCS\LED.H $
  13. *
  14. * Rev 1.0 14 Nov 1995 06:40:44 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