Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, July 3, 2006 12:02:06 AM(UTC)

VadimR  
VadimR

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?
 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, July 4, 2006 7:57:50 AM(UTC)

Amin  
Amin

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.
LEAD Logo
 
#3 Posted : Monday, July 10, 2006 5:32:07 AM(UTC)

VadimR  
VadimR

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)

Amin  
Amin

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.
LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.082 seconds.