术语 | 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 |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。