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 |
); |
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. |
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.
The MF_HILITE and MF_UNHILITE flags can be used only with the HiliteMenuItem function; they cannot be used with the ModifyMenu function.
See:
file: /Techref/os/win/api/win32/func/src/f45_5.htm, 4KB, , updated: 2001/6/26 10:25, local time: 2024/11/5 18:53,
3.142.252.87: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? <A HREF="http://linistepper.com/techref/os/win/api/win32/func/src/f45_5.htm"> HiliteMenuItem</A> |
Did you find what you needed? |