Share via


LB_SETTOPINDEX

This message is sent by an application to ensure that a particular item in a list box is visible.

LB_SETTOPINDEX wParam = (WPARAM) index; 
  lParam = 0;

Parameters

  • index
    Zero-based index of the item in the list box.
  • lParam
    Not used.

Return Values

LB_ERR indicates that an error has occurred.

Remarks

The system scrolls the list box contents so that either the specified item appears at the top of the list box or the maximum scroll range has been reached.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

LB_GETTOPINDEX | List Box Messages

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.