Old fashion design for PC-104
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.

56 lines
1.1 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgButton.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgButton.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__BUTTON__H__INCLUDED__
  15. #define __LG__BUTTON__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include <afxext.h>
  20. #define LG_BUTTON_BM_SET_STATE (WM_USER+100)
  21. class CLgButton :
  22. public CButton
  23. {
  24. public:
  25. CLgButton();
  26. virtual ~CLgButton();
  27. public:
  28. //{{AFX_VIRTUAL(CLgButton)
  29. public:
  30. protected:
  31. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  32. //}}AFX_VIRTUAL
  33. public:
  34. BOOL SetBitmaps( UINT nUp, UINT nDown );
  35. protected:
  36. //{{AFX_MSG(CLgButton)
  37. //}}AFX_MSG
  38. DECLARE_MESSAGE_MAP()
  39. private:
  40. void UpdateImages();
  41. HBITMAP m_hUpBitmap;
  42. HBITMAP m_hDownBitmap;
  43. };
  44. //{{AFX_INSERT_LOCATION}}
  45. #endif