MM_QUERYITEMCOUNT
Appearance
This message returns the number of items in the menu.
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
- sresult (SHORT) - return
- Item count.
Remarks
The menu control window procedure responds to this message by returning the count of the number of items in the menu.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set sresult to the default value of 0.