LM_SETTOPINDEX
Appearance
This message is used to scroll a particular item to the top of the list box.
Syntax
param1 SHORT sItemIndex; /* Index of the item to be made top. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- sItemIndex (SHORT) - input
- Index of the item to be made top.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- rc (BOOL) - return
- Success indicator.
- TRUE: Successful completion.
- FALSE: Error occurred.
Remarks
The list box control window procedure responds to this message by scrolling the item whose index is identified by sItemIndex to the top of the list box.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.