网站首页  计算机词典

请输入您要查询的字词:

 

字词 destroymenu
释义 DestroyMenu
语法:
BOOL DestroyMenu( HMENU hMenu
);
DestroyMenu函数
销毁的DestroyMenu函数指定的菜单和释放任何内存占用的菜单。
参数
hMenu
[in]菜单句柄被摧毁。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在结束前,应用程序必须使用功能的DestroyMenu销毁未分配到一个窗口的菜单。阿分配给一个窗口菜单时会自动销毁的应用程序关闭。
DestroyMenu是递归的,也就是说,它会破坏所有的菜单和子菜单。
例如
有关示例,请参见显示一个快捷菜单。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
菜单,CreateMenu,DeleteMenu,RemoveMenu,SetMenuItemInfo
==英文原文==DestroyMenu Function
The DestroyMenu function destroys the specified menu and frees any memory that the menu occupies.
Syntax
BOOL DestroyMenu( HMENU hMenu
);
Parameters
hMenu
[in] Handle to the menu to be destroyed.
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 .
Remarks
Before closing, an application must use the DestroyMenu function to destroy a menu not assigned to a window. A menu that is assigned to a window is automatically destroyed when the application closes.
DestroyMenu is recursive, that is, it will destroy the menu and all its submenus.
Example
For an example, see Displaying a Shortcut 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 , CreateMenu , DeleteMenu , RemoveMenu , SetMenuItemInfo
==原始网址==http://msdn.microsoft.com/en-us/library/ms647631(VS.85).aspx\n
随便看

 

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

 

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