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>createmenu()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CreateMenu()
Create a new menu structure
------------------------------------------------------------------------------

Syntax
CreateMenu()   -->   aMenu

Arguments
None.

Returns
An array of information about the menu, which may be passed to
the related functions AppendMenu() and SetMenu().  This
array should not be altered or examined, and is subject to
change in future versions of Clip-4-Win.

Description
This function is used to create an empty menu structure, which
can be added to using AppendMenu(), and activated using
SetMenu().

Example
// The famous File...Exit menu
aMenu = CreateMenu()
aPopupMenu = CreatePopupMenu()
AppendMenu( aPopupMenu, "exit", MF_ENABLED + MF_STRING,     ;
            "E&xit", {|cId| DoExit()} )
AppendMenu( aMenu, "file", MF_ENABLED + MF_POPUP,           ;
            "&File", aPopupMenu )
SetMenu( hWnd, aMenu )


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

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