术语 | createmenu |
释义 | CreateMenu 语法: HMENU CreateMenu(VOID); Return Value If the function succeeds, the return value is a handle to the newly created menu. If the function fails, the return value is NULL. To get extended error information, call GetLastError . Remarks Resources associated with a menu that is assigned to a window are freed automatically. If the menu is not assigned to a window, an application must free system resources associated with the menu before closing. An application frees menu resources by calling the DestroyMenu function. Windows 95/98/Me: The system can support a maximum of 16,364 menu handles. 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 , AppendMenu , CreatePopupMenu , DestroyMenu , InsertMenu , SetMenu , InsertMenuItem CreateMenu函数 该CreateMenu函数创建一个菜单。菜单最初是空的,但它可以与使用InsertMenuItem,AppendMenu菜单项填补,InsertMenu功能。 ==英文原文==CreateMenu Function The CreateMenu function creates a menu. The menu is initially empty, but it can be filled with menu items by using the InsertMenuItem , AppendMenu , and InsertMenu functions. Syntax HMENU CreateMenu(VOID); Return Value If the function succeeds, the return value is a handle to the newly created menu. If the function fails, the return value is NULL. To get extended error information, call GetLastError . Remarks Resources associated with a menu that is assigned to a window are freed automatically. If the menu is not assigned to a window, an application must free system resources associated with the menu before closing. An application frees menu resources by calling the DestroyMenu function. Windows 95/98/Me: The system can support a maximum of 16,364 menu handles. 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 , AppendMenu , CreatePopupMenu , DestroyMenu , InsertMenu , SetMenu , InsertMenuItem ==原始网址==http://msdn.microsoft.com/en-us/library/ms647624(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。