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

Syntax
CreatePopupMenu()   -->   aPopupMenu

Arguments
None.

Returns
An array of information about the pop-up menu, which may be
passed to the related function AppendMenu().  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 pop-up 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() CreateMenu() SetMenu()

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