LImageListControl::EnsureVisible

#include "ltwrappr.h"

L_BOOL LImageListControl::EnsureVisible(nIndex)

L_INT nIndex;

/* index of the item to which to scroll */

Scrolls the image list to make the specified item visible.

Parameter

Description

nIndex

0-based index that indicates the item to which to scroll.

Returns

<>0

The number of rows/columns scrolled to make the specified item visible.

0

Did not scroll OR an error occurred.

Comments

Depending on the current setting for the control's ScrollStyle, the number or rows or columns returned will be scrolled in order to make the specified item visible.

Required DLLs and Libraries

LTDIS
LTFIL
LTIMG

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:

Class Members

Topics:

Using the ImageList Control

Example

For an example, refer to LImageListControl::Insert.