网站首页  词典首页

请输入您要查询的函数:

 

术语 getmenuitemid
释义 GetMenuItemID
语法:
UINT GetMenuItemID( HMENU hMenu,
int nPos
);
GetMenuItemID函数
该GetMenuItemID函数检索在菜单中指定位置位于一个菜单项菜单项的标识符。
参数
hMenu
[in]句柄菜单,其中包含该项目的标识符是要检索。
npos返回
[in]指定的从零开始的菜单项的标识,是要检索的相对位置。
返回值
返回值是指定的菜单项的标识符。如果该菜单项标识符为NULL或如果指定的项目打开子菜单,返回值是-1。
例如
举例说,看到一个剪贴板查看示例。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
菜单,GetMenuItemCount
==英文原文==GetMenuItemID Function
The GetMenuItemID function retrieves the menu item identifier of a menu item located at the specified position in a menu.
Syntax
UINT GetMenuItemID( HMENU hMenu,
int nPos
);
Parameters
hMenu
[in] Handle to the menu that contains the item whose identifier is to be retrieved.
nPos
[in] Specifies the zero-based relative position of the menu item whose identifier is to be retrieved.
Return Value
The return value is the identifier of the specified menu item. If the menu item identifier is NULL or if the specified item opens a submenu, the return value is -1.
Example
For an example, see Example of a Clipboard Viewer .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Menus , GetMenuItemCount
==原始网址==http://msdn.microsoft.com/en-us/library/ms647979(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:15:31