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.

44 lines
1.0 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.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of LgButton.cpp
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "..\..\LgLib\Version.h"
  16. #include "LgButton.h"
  17. CLgButton::CLgButton()
  18. {
  19. }
  20. CLgButton::~CLgButton()
  21. {
  22. }
  23. BEGIN_MESSAGE_MAP(CLgButton, CButton)
  24. //{{AFX_MSG_MAP(CLgButton)
  25. //}}AFX_MSG_MAP
  26. END_MESSAGE_MAP()
  27. LRESULT CLgButton::WindowProc( UINT message, WPARAM wParam, LPARAM lParam )
  28. {
  29. switch( message )
  30. {
  31. case BM_SETSTATE:
  32. if( GetParent() )
  33. GetParent()->SendMessage( WM_LG_BUTTON_SET_STATE, (WPARAM)::GetWindowLong( GetSafeHwnd(), GWL_ID ), (LPARAM)wParam );
  34. break;
  35. }
  36. return CButton::WindowProc(message, wParam, lParam);
  37. }