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 : Tuesday, March 6, 2018 3:35:55 AM(UTC)

tksong  
tksong

Groups: Registered
Posts: 10

Thanks: 1 times

in MFC(C++), v19.

I want to get the Mouse Position of the part where the image is displayed In LAnnotationWindow.

I implemented it using the GetBitmapVisibleRect () function, and I think I would just calculate the Scroll offset.

But I can not find a way to get the scroll offset.

How can I get that value?
 

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, March 6, 2018 1:52:16 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

Was thanked: 28 time(s) in 28 post(s)

Hello,

It doesn't appear we have any methods for retrieving the current scroll positions on the LAnnotationWindow. However, you can use get around this by using the ScrollTo method, which returns the amount scrolled:

Code:

// Scroll back to origin
POINT offset = annWin.ScrollTo(0, 0);
// Invert scroll offset to get back to original
offset.x *= -1;
offset.y *= -1;
// Scroll back to original and save how far it actually scrolled
offset = annWin.ScrollTo((L_INT)offset.x, (L_INT)offset.y);
Anthony Northrup
Developer 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.050 seconds.