Cromon

Button.cs

Oct 25th, 2012
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. private void handleButtonUp(MouseMessage msg)
  2. {
  3. if (ClientRectangle.Contains(msg.X, msg.Y))
  4. {
  5. if ((msg.Modifiers & Win32Native.ModifierKeys.MK_LBUTTON) != 0)
  6. {
  7. if (Click != null)
  8. Click(this);
  9.  
  10. mIsPressed = false;
  11. }
  12. }
  13. else
  14. {
  15. if ((msg.Modifiers & Win32Native.ModifierKeys.MK_LBUTTON) != 0)
  16. mIsPressed = false;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment