msgs12.hlp (Topic list)
MM_QUERYITEMCOUNT (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMENUS
 
MM_QUERYITEMCOUNT
mp1 = 0L;    /* not used, must be zero */
mp2 = 0L;    /* not used, must be zero */
 
An application sends an MM_QUERYITEMCOUNT message to determine the number of
items in a menu. Submenus count as a single item if the message is sent to
the action-bar menu window. To count the items in a submenu, the message
must be sent to the submenu window.
 
This message does not use any parameters.
 
Return Value
 
The return value is the number of items in the menu.
 
                                      ♦