网站首页  词典首页

请输入您要查询的函数:

 

术语 getmenubarinfo
释义 GetMenuBarInfo
语法:
BOOL GetMenuBarInfo( HWND hwnd,
LONG idObject,
LONG idItem,
PMENUBARINFO pmbi
);
GetMenuBarInfo功能
该GetMenuBarInfo函数检索有关指定的菜单栏。
参数
hwnd
[in]的窗口句柄(菜单栏),其信息可以检索。
idObject
[in]指定的菜单对象。此参数可以是下列值之一。
OBJID_CLIENT
在弹出菜单中的窗口相关联。
OBJID_MENU
菜单栏与窗口有关(见GetMenu函数)。
OBJID_SYSMENU
系统菜单与窗口相关的(见GetSystemMenu函数)。
idItem
[in]指定的项为检索信息。如果此参数为0,函数检索有关的菜单本身的信息。如果此参数为1,函数检索有关菜单上的第一个项目的信息,等等。
pmbi
[out]指向1 MENUBARINFO结构,它接收的信息。请注意,您必须设置为sizeof MENUBARINFO.cbSize在调用这个函数(MENUBARINFO)。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低经营systemsWindows 98时,Windows NT 4.0 Service Pack 6中
参见
菜单,GetMenu,GetSystemMenu,MENUBARINFO
==英文原文==GetMenuBarInfo Function
The GetMenuBarInfo function retrieves information about the specified menu bar.
Syntax
BOOL GetMenuBarInfo( HWND hwnd,
LONG idObject,
LONG idItem,
PMENUBARINFO pmbi
);
Parameters
hwnd
[in] Handle to the window (menu bar) whose information is to be retrieved.
idObject
[in] Specifies the menu object. This parameter can be one of the following values.
OBJID_CLIENT
The popup menu associated with the window.
OBJID_MENU
The menu bar associated with the window (see the GetMenu function).
OBJID_SYSMENU
The system menu associated with the window (see the GetSystemMenu function).
idItem
[in] Specifies the item for which to retrieve information. If this parameter is zero, the function retrieves information about the menu itself. If this parameter is 1, the function retrieves information about the first item on the menu, and so on.
pmbi
[out] Pointer to a MENUBARINFO structure that receives the information. Note that you must set MENUBARINFO.cbSize to sizeof(MENUBARINFO) before calling this function.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 98, Windows NT 4.0 Service Pack 6
See Also
Menus , GetMenu , GetSystemMenu , MENUBARINFO
==原始网址==http://msdn.microsoft.com/en-us/library/ms647833(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:07