网站首页  词典首页

请输入您要查询的函数:

 

术语 hilitemenuitem
释义 HiliteMenuItem
语法:
BOOL HiliteMenuItem( HWND hwnd,
HMENU hmenu,
UINT uItemHilite,
UINT uHilite
);
HiliteMenuItem功能
该HiliteMenuItem功能突出或删除从项目突出一个菜单栏。
参数
hwnd
[in]的窗口句柄包含菜单。
hmenu
[in]句柄菜单栏,其中包含的项目加以强调。
uItemHilite
[in]指定菜单项加以强调。此参数要么是菜单项标识符或偏移菜单项在菜单栏中,取决于该uHilite参数的值。
uHilite
[in]控制的uItemHilite参数的解释和指示菜单项是否突出。此参数必须是一方MF_BYCOMMAND或MF_BYPOSITION和MF_HILITE或MF_UNHILITE组合。
MF_BYCOMMAND
指示uItemHilite给出了菜单项的标识符。
MF_BYPOSITION
指示uItemHilite使从零开始的菜单项的相对位置。
MF_HILITE
特色的菜单项。如果此标志没有被指定,突出免去了该项目。
MF_UNHILITE
从菜单中删除项突出。
返回值
如果该菜单项设置为指定的突出状态,返回非零值。
如果该菜单项没有设置到指定的突出状态,返回值是零。
备注
在MF_HILITE和MF_UNHILITE标志只能用于与HiliteMenuItem功能,他们不能与ModifyMenu函数中使用。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
菜单,ModifyMenu
==英文原文==HiliteMenuItem Function
The HiliteMenuItem function highlights or removes the highlighting from an item in a menu bar.
Syntax
BOOL HiliteMenuItem( HWND hwnd,
HMENU hmenu,
UINT uItemHilite,
UINT uHilite
);
Parameters
hwnd
[in] Handle to the window that contains the menu.
hmenu
[in] Handle to the menu bar that contains the item to be highlighted.
uItemHilite
[in] 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
[in] Controls 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.
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 Value
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.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Menus , ModifyMenu
==原始网址==http://msdn.microsoft.com/en-us/library/ms647986(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:23:39