I have multiple bitmap objects on my window(dialog or view) and I want
to handle the mouse click event. I want to know on which bitmap image
the mouse is clicked.
One way is find out on which image the point falls using RectImage
function.
Is there any other method by which I could determine the same ?
Regards,
justLikedat
Hi,
You can use the following APIs/Windows notifications to get
the location of the mouse click on the screen:
GetMessagePos()
GetCursorPos()
Or,
WM_LBUTTONDBLCLK
WM_NCHITTEST
http://msdn2.microsoft.com/en-us/library/ms644938.aspx
http://msdn2.microsoft.com/en-us/library/ms648390.aspx
http://msdn2.microsoft.com/en-us/library/ms645606.aspx
http://msdn2.microsoft.com/en-us/library/ms645618.aspx
Kellie.