网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystemmenu
释义 GetSystemMenu
语法:
HMENU GetSystemMenu( HWND hWnd,
BOOL bRevert
);
GetSystemMenu函数
该GetSystemMenu函数允许应用程序访问窗口菜单(也称为系统菜单或控制菜单的复制和修改)。
参数
hWnd
[in]的窗口句柄将拥有一个窗口菜单中的副本。
bRevert
[in]指定要采取的行动。如果此参数为FALSE,GetSystemMenu返回句柄窗口的菜单目前使用的副本。最初的复制相同的窗口菜单,但可以修改。如果此参数为TRUE,GetSystemMenu窗口菜单重置回默认状态。以前的窗口菜单,如果有的话,被摧毁。
返回值
如果bRevert参数为FALSE,则返回值是一个句柄的窗口菜单中的副本。如果bRevert参数为true,则返回值为NULL。
备注
任何窗口,不使用GetSystemMenu功能使其窗口的菜单自己的副本接收标准的窗口菜单。
窗口菜单最初包含各种标识符值,如SC_CLOSE,SC_MOVE,项目和SC_SIZE。
在窗口菜单中的邮件发送WM_SYSCOMMAND的菜单项。
所有预定义的窗口菜单项的标识符数字大于0xF000。如果应用程序添加命令窗口菜单上,它应该使用小于0xF000识别号码。
系统会自动格雷斯在标准窗口菜单项,视情况而定。应用程序可以执行的回应WM_INITMENU消息之前,任何菜单派出了自己的检查或灰白显示。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
菜单,GetMenu,InsertMenuItem,SetMenuItemInfo,WM_INITMENU,WM_SYSCOMMAND的
==英文原文==GetSystemMenu Function
The GetSystemMenu function allows the application to access the window menu (also known as the system menu or the control menu) for copying and modifying.
Syntax
HMENU GetSystemMenu( HWND hWnd,
BOOL bRevert
);
Parameters
hWnd
[in] Handle to the window that will own a copy of the window menu.
bRevert
[in] Specifies the action to be taken. If this parameter is FALSE, GetSystemMenu returns a handle to the copy of the window menu currently in use. The copy is initially identical to the window menu, but it can be modified. If this parameter is TRUE, GetSystemMenu resets the window menu back to the default state. The previous window menu, if any, is destroyed.
Return Value
If the bRevert parameter is FALSE, the return value is a handle to a copy of the window menu. If the bRevert parameter is TRUE, the return value is NULL.
Remarks
Any window that does not use the GetSystemMenu function to make its own copy of the window menu receives the standard window menu.
The window menu initially contains items with various identifier values, such as SC_CLOSE, SC_MOVE, and SC_SIZE.
Menu items on the window menu send WM_SYSCOMMAND messages.
All predefined window menu items have identifier numbers greater than 0xF000. If an application adds commands to the window menu, it should use identifier numbers less than 0xF000.
The system automatically grays items on the standard window menu, depending on the situation. The application can perform its own checking or graying by responding to the WM_INITMENU message that is sent before any menu is displayed.
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 , GetMenu , InsertMenuItem , SetMenuItemInfo , WM_INITMENU , WM_SYSCOMMAND
==原始网址==http://msdn.microsoft.com/en-us/library/ms647985(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:21:25