Jump to content

LM_SETTOPINDEX

From EDM2
Revision as of 02:23, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:LM_SETTOPINDEX}} This message is used to scroll a particular item to the top of the list box. ==Syntax== <pre> param1 SHORT sItemIndex; Index of the item to be made top.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==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: Succ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.