Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CBitmap issue

0 views
Skip to first unread message

gguruba...@gmail.com

unread,
Jul 17, 2007, 2:17:35 AM7/17/07
to
Hi all,

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

Kellie Fitton

unread,
Jul 17, 2007, 3:58:38 PM7/17/07
to


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.


0 new messages