Home > Back-end >  To capture the mouse message
To capture the mouse message

Time:09-26

BEGIN_MESSAGE_MAP
MESSAGE_HANDLER (WM_LBUTTONDOWN TMessage, CMMouseDown)
MESSAGE_HANDLER (WM_LBUTTONUP TMessage, CMMouseUp)
END_MESSAGE_MAP (TCustomControl)

Through the above statement to capture the mouse click on the message, but when the fast after the click of a mouse, no matter which position click in the interface, the message is this control captured, into a dead loop, why?
  • Related