LVectorWindow::ScrollBy

#include "ltwrappr.h"

POINT LVectorWindow::ScrollBy(dx, dy)

Scrolls the displayed vector by the specified amount.

Parameters

L_INT dx

The distance to scroll the vector horizontally.

L_INT dy

The distance to scroll the vector vertically.

Returns

A point structure that holds the actual horizontal and vertical distances by which the vector was scrolled.

Comments

The units for dx and dy are in pixels, with the top, left pixel of the image being 0,0. This function can be used with or without scrollbars.

Required DLLs and Libraries

See Also

Functions

Example

Assumes pVectorWindow points to a valid LVectorWindow object.

L_INT LVectorWindow__ScrollByExample(HWND hWndParent, LVectorWindow *pVectorWindow) 
{ 
   UNREFERENCED_PARAMETER(hWndParent); 
 
   //Scroll horizontally three pixels  
   pVectorWindow->ScrollBy(3, 0); 
 
   return SUCCESS; 
} 

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help