网站首页  计算机词典

请输入您要查询的字词:

 

字词 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
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:29:15