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>getmenuhandle()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetMenuHandle()
Return the menu handle of a menu
------------------------------------------------------------------------------

Syntax
GetMenuHandle( <aMenu> )   -->   hMenu

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

Returns
The handle of the menu item is returned.

Description
This function returns the handle used by Windows for the menu.

Example
aMenu = CreateMenu()
AppendMenu( aMenu, "help",                 ;
            MF_ENABLED + MF_STRING,        ;
            "&Help", { | cId |  Help() } )
hMenu = GetMenuHandle( aMenu )

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

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