LEADTOOLS Support
Imaging
Imaging SDK Questions
How to get Scroll Position in LAnnotationWindow
#1
Posted
:
Tuesday, March 6, 2018 3:35:55 AM(UTC)
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?
#2
Posted
:
Tuesday, March 6, 2018 1:52:16 PM(UTC)
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.
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to get Scroll Position in LAnnotationWindow
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.