LM_QUERYTOPINDEX
Appearance
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.