please dont rip this site Prev Next

HiliteMenuItem info  Overview  Group

The HiliteMenuItem function highlights or removes the highlighting from an item in a menu bar.

BOOL HiliteMenuItem(

    HWND hwnd,

// handle to the window with the menu

    HMENU hmenu,

// handle to the menu

    UINT uItemHilite,

// menu item to highlight or unhighlight

    UINT uHilite

// highlight flags

   );

Parameters

hwnd
Identifies the window that contains the menu.
hmenu
Identifies the menu bar that contains the item to be highlighted.
uItemHilite
Specifies the menu item to be highlighted. This parameter is either the identifier of the menu item or the offset of the menu item in the menu bar, depending on the value of the uHilite parameter.
uHilite
Specifies flags that control the interpretation of the uItemHilite parameter and indicates whether the menu item is highlighted. This parameter must be a combination of either MF_BYCOMMAND or MF_BYPOSITION and MF_HILITE or MF_UNHILITE.

Value

Meaning

MF_BYCOMMAND

Indicates that uItemHilite gives the identifier of the menu item.

MF_BYPOSITION

Indicates that uItemHilite gives the zero-based relative position of the menu item.

MF_HILITE

Highlights the menu item. If this flag is not specified, the highlighting is removed from the item.

MF_UNHILITE

Removes highlighting from the menu item.

Return Values

If the menu item is set to the specified highlight state, the return value is nonzero.

If the menu item is not set to the specified highlight state, the return value is zero.

Remarks

The MF_HILITE and MF_UNHILITE flags can be used only with the HiliteMenuItem function; they cannot be used with the ModifyMenu function.

See Also

ModifyMenu 

See:


file: /Techref/os/win/api/win32/func/src/f45_5.htm, 4KB, , updated: 2001/6/26 10:25, local time: 2024/11/4 13:27,
TOP NEW HELP FIND: 
3.135.184.186:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f45_5.htm"> HiliteMenuItem</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .