| 字词 | createpopupmenu |
| 释义 | CreatePopupMenu 语法: HMENU CreatePopupMenu(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 The application can add the new menu to an existing menu, or it can display a shortcut menu by calling the TrackPopupMenuEx or TrackPopupMenu functions. 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. 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 , AppendMenu , CreateMenu , DestroyMenu , InsertMenu , SetMenu , TrackPopupMenu , TrackPopupMenuEx , InsertMenuItem CreatePopupMenu函数 该CreatePopupMenu函数创建一个下拉菜单,子菜单或快捷菜单。菜单最初是空的。您可以插入或追加使用InsertMenuItem功能菜单项。您还可以使用InsertMenu函数来插入菜单项和AppendMenu函数追加菜单项。 ==英文原文==CreatePopupMenu Function The CreatePopupMenu function creates a drop-down menu, submenu, or shortcut menu. The menu is initially empty. You can insert or append menu items by using the InsertMenuItem function. You can also use the InsertMenu function to insert menu items and the AppendMenu function to append menu items. Syntax HMENU CreatePopupMenu(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 The application can add the new menu to an existing menu, or it can display a shortcut menu by calling the TrackPopupMenuEx or TrackPopupMenu functions. 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. 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 , AppendMenu , CreateMenu , DestroyMenu , InsertMenu , SetMenu , TrackPopupMenu , TrackPopupMenuEx , InsertMenuItem ==原始网址==http://msdn.microsoft.com/en-us/library/ms647626(VS.85).aspx\n |
| 随便看 |
|
计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。