网站首页  词典首页

请输入您要查询的函数:

 

术语 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
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:25:36