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>hilitemenuitem()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HiliteMenuItem()
Alter the highlighting on a menu bar item
------------------------------------------------------------------------------

Syntax
HiliteMenuItem( <hWnd>, <aMenu>, <cId>, <nFlag> )   -->  lSuccess

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

<cId> is a character string identifying the item being
manipulated.

<nFlag> specifies the new state of the menu item.  Use one of
the values MF_HILITE or MF_UNHILITE defined in WINDOWS.CH.

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function is used to modify an item in an existing menu
structure.

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 )
HiliteMenuItem( aPopupMenu, "file", MF_HILITE )
DrawMenuBar( hWnd )


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

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