网站首页  词典首页

请输入您要查询的函数:

 

术语 getmenu
释义 GetMenu
语法:
HMENU GetMenu( HWND hWnd
);
GetMenu函数
GetMenu函数检索一个句柄分配给指定窗口的菜单。
参数
hWnd
[in]句柄窗口的菜单句柄是要检索。
返回值
返回值是一个句柄菜单。如果指定的窗口没有菜单,返回值为NULL。如果窗口是一个子窗口,返回值是不确定的。
备注
GetMenu不起作用浮动菜单栏。浮动菜单栏自定义控件模仿标准菜单,它们并不是菜单。为了得到处理浮动菜单栏,使用Active Accessibility的宣传短片。
例如
有关示例,请参见添加线条和图形的菜单。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
菜单,GetSubMenu,SetMenu
==英文原文==GetMenu Function
The GetMenu function retrieves a handle to the menu assigned to the specified window.
Syntax
HMENU GetMenu( HWND hWnd
);
Parameters
hWnd
[in] Handle to the window whose menu handle is to be retrieved.
Return Value
The return value is a handle to the menu. If the specified window has no menu, the return value is NULL. If the window is a child window, the return value is undefined.
Remarks
GetMenu does not work on floating menu bars. Floating menu bars are custom controls that mimic standard menus; they are not menus. To get the handle on a floating menu bar, use the Active Accessibility APIs.
Example
For an example, see Adding Lines and Graphs to a Menu .
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 , GetSubMenu , SetMenu
==原始网址==http://msdn.microsoft.com/en-us/library/ms647640(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:24:28