Jump to content

MM QUERYITEMCOUNT: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:MM_QUERYITEMCOUNT}} This message returns the number of items in the menu. ==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== ;sresult (SHORT) - return: Item count. ==Remarks== The menu control window procedu..."
 
(No difference)

Latest revision as of 02:25, 28 April 2025

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.