Jump to content

LM_QUERYTOPINDEX

From EDM2
Revision as of 02:19, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:LM_QUERYTOPINDEX}} This message obtains the index of the item currently at the top of the list box. ==Syntax== <pre> param1 ULONG ulReserved; Reserved value, should be 0.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;ulReserved (ULONG) - input: Reserved value, should be 0. ;ulReserved (ULONG) - input: Reserved value, should be 0. ==Returns== ;sItemTop (SHORT) - return: Index of the item currently a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message obtains the index of the item currently at the top of the list box.

Syntax

param1
ULONG ulReserved; /* Reserved value, should be 0. */

param2
ULONG ulReserved; /* Reserved value, should be 0. */

Parameters

ulReserved (ULONG) - input
Reserved value, should be 0.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

sItemTop (SHORT) - return
Index of the item currently at the top of the list box.
LIT_NONE: No items in the list box.
Other: Index of the item currently at the top of the list box.

Remarks

The list box control window procedure responds to this message by returning in sItemTop the zero-based index of the item currently at 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 sItemTop to the default value of 0.