Jump to content

LM QUERYITEMCOUNT

From EDM2
Revision as of 23:17, 14 April 2025 by Martini (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message returns a count of the number of items in the list box control.

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

sItemCount (SHORT) - returns
Item count.

Remarks

The list box control window procedure responds to this message by setting sItemCount to the number of items in the list.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set sItemCount to the default value of 0.