Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getmenuitemcount()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetMenuItemCount()
Return the number of items in a menu
------------------------------------------------------------------------------

Syntax
GetMenuItemCount( <aMenu> )   -->   nCount

Arguments
<aMenu> is the existing menu, originally obtained from
CreateMenu() or CreatePopupMenu().

Returns
If successful, the number of items in the menu (or pop-up
menu) is returned.  Otherwise, -1 is returned.

Description
This function returns the number of items in a menu or sub-
menu.

Example
aMenu = CreateMenu()
? GetMenuItemCount( aMenu )        // result: 0


See Also: AppendMenu() CreateMenu() CreatePopupMenu() SetMenu()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson