L_ILM_ENSUREVISIBLE

Send this message to scroll the items in the ImageList Control so that the specified item is visible.

Parameter

Description

wParam

0-based index of the item to make visible.

lParam

Ignored, use 0.

 

Returns

<>0

The number or rows/columns scrolled.

0

Did not scroll or an error occured. Refer to Return Codes.

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.

The associated macro is:

L_ImgListEnsureVisible(hWnd, uItem)

For a complete list of available macros, refer to the Ltlst.h file.

See Also

Elements:

L_ILM_GETSCROLLSTYLE, L_ILM_INSERT, L_ILM_SCROLLITEMS, L_ILM_GETPAGE, L_ILM_GETITEMCOUNT

Topics:

Using the ImageList Control

 

Image List Control Messages

Example

For an example, refer to L_ILM_INSERTAT.