LEADTOOLS Support
Imaging
Imaging SDK Questions
LBitmapWindow:Coordinates of the click point
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, July 3, 2006 12:02:06 AM(UTC)
Groups: Registered
Posts: 20
After create the LBitmapWindow control and make it visible
HWND hWnd = m_LBitmap.CreateWnd(GetSafeHwnd(),
WS_VISIBLE|L_BS_CENTER|WS_HSCROLL,
rcRect.TopLeft().x,
rcRect.TopLeft().y,
rcRect.BottomRight().x,
rcRect.BottomRight().y);
I want to obtain a coordinates of the click point on this control . How to do it?
#2
Posted
:
Tuesday, July 4, 2006 7:57:50 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Vadim,
If you want to handle the mouse events, look at the following demo shipped with our toolkit:
LEADTOOLS14.5\Examples\CLASSLIB\MSVC5\ZoomView
If you need to do it with the class created as a control, you need to do this:
1. Derive a class from LBitmapWindow and use this derived class.
2. Override LBitmapWindow::MsgProcCallBack
3. Handle the needed notification message, such as LBW_LBUTTONDOWN. The list is documented in the help topic LBitmapWindow Control Notification Messages.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, July 10, 2006 5:32:07 AM(UTC)
Groups: Registered
Posts: 20
Thank, you very much for answer.
How to get a coordinate of the click point relative to a left top corner of the image with scrollbar or without scrollbar .(Not relative to point of the left top corner of the frame.)
#4
Posted
:
Wednesday, July 12, 2006 3:57:25 PM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Vadim,
See the following post for a way to convert from mouse to bitmap coordinates:
http://support.leadtools.com/SupportPortal/cs/forums/5309/ShowPost.aspx
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
LBitmapWindow:Coordinates of the click point
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.