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>getmenu()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetMenu()
Return a reference to an existing menu
------------------------------------------------------------------------------

Syntax
GetMenu( [ <hWnd> ]  )   -->   aMenu

Arguments
<hWnd> is an optional parameter specifying the window to which
the menu belongs.  The menu should have previously been
attached to the window by calling the SetMenu() function.
This parameter defaults to the current window, as returned by
SelectWindow().

Returns
An array of information about the application's current 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 retrieve an existing menu structure,
which can be added to using AppendMenu(), and activated using
SetMenu().

Example
if  ( aCurrentMenu := GetMenu() )  !=  aNewMenu
     SetMenu( aNewMenu )
endif


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

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