Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Vector C++ Class Library Help

LVectorWindow::EnableAutoScroll

Show in webframe

#include "ltwrappr.h"

L_BOOL LVectorWindow::EnableAutoScroll(bAutoScroll)

L_BOOL bAutoScroll;

/* flag that indicates whether to enable auto scrolling*/

Enables or disables automatic scrolling of the displayed vector.

Parameter

Description

bAutoScroll

Flag that indicates whether to enable auto scrolling of the vector displayed by the vector window. Possible values are:

 

Value

Meaning

 

TRUE

Enable auto scrolling.

 

FALSE

Disable auto scrolling.

Returns

The previous state.

Comments

When auto scrolling is enabled, the class object's window will display scrollbars when necessary. In addition, it will automatically handle scrolling the vector, based on the scroll messages generated for those scrollbars.

This setting is enabled by default.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorWindow::IsAutoScrollEnabled, Class Members

Example

Assumes pVectorWindow points to a valid LVectorWindow object.

L_INT LVectorWindow__EnableAutoScrollExample(HWND hWndParent, LVectorWindow *pVectorWindow)
{
   UNREFERENCED_PARAMETER(hWndParent);
   //Toggles the AutoScroll
   L_BOOL bAutoScrollState = pVectorWindow->IsAutoScrollEnabled();
   pVectorWindow->EnableAutoScroll(!bAutoScrollState);
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.