ImageGear Professional for Windows ActiveX
ScrollTo Method

Description:

Scrolls the image to a specified position and updates the window's scroll bars accordingly. It can be used even if a window's scroll bars are disabled. Both scroll positions should be in valid scroll range but if not, then the nearest valid value will be assigned.

Syntax:

      ScrollTo(hWnd As Long, XPos As Long, YPos As Long)

Parameters:

Name Description
hWnd Handle of window where image is displayed and where scrolling is performed.
XPos New horizontal scroll position. Should be in a valid range that can be retrieved using the GetScrollAttrs Method.
YPos New vertical scroll position. Should be in a valid range that can be retrieved using the GetScrollAttrs Method.

Return Value:

N/A

Bits Per Pixel:

N/A

Sample:

Display

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback