网站首页  词典首页

请输入您要查询的函数:

 

术语 checkmenuradioitem
释义 CheckMenuRadioItem
语法:
BOOL CheckMenuRadioItem( HMENU hmenu,
UINT idFirst,
UINT idLast,
UINT idCheck,
UINT uFlags
);
CheckMenuRadioItem功能
该CheckMenuRadioItem函数检查指定的菜单项,并使它成为电台的项目。同时,清除所有的功能在相关的组中的其他菜单项,并清除电台为这些项目的项目类型的标志。
参数
hmenu
[in]句柄菜单,其中包含菜单项组。
idFirst
[in]标识符或菜单项第一组中的位置。
idLast
[in]标识符或最后一个菜单项的位置在组。
idCheck
[in]标识符或菜单项的位置进行检查。
uFlags
[in]值指定的idFirst,idLast意义和idCheck。如果此参数为MF_BYCOMMAND,其他参数指定菜单项的标识。如果是MF_BYPOSITION,其他参数指定菜单项位置。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,使用GetLastError函数。
备注
函数的CheckMenuRadioItem套供idCheck指定的项目MFT_RADIOCHECK类型国旗和MFS_CHECKED状态,并在同一时间,在清除所有其他项目组的两个标志。所选的项目是用一颗子弹显示位图,而不是检查标记位图。
如需有关菜单的项目类型和国家的标志信息,请参阅MENUITEMINFO结构。
例如
有关示例,请参阅使用自定义的复选标记位图的榜样影响。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 4.0
UnicodeImplemented为Unicode版本。
参见
菜单,MENUITEMINFO
==英文原文==CheckMenuRadioItem Function
The CheckMenuRadioItem function checks a specified menu item and makes it a radio item. At the same time, the function clears all other menu items in the associated group and clears the radio-item type flag for those items.
Syntax
BOOL CheckMenuRadioItem( HMENU hmenu,
UINT idFirst,
UINT idLast,
UINT idCheck,
UINT uFlags
);
Parameters
hmenu
[in] Handle to the menu that contains the group of menu items.
idFirst
[in] Identifier or position of the first menu item in the group.
idLast
[in] Identifier or position of the last menu item in the group.
idCheck
[in] Identifier or position of the menu item to check.
uFlags
[in] Value specifying the meaning of idFirst, idLast, and idCheck. If this parameter is MF_BYCOMMAND, the other parameters specify menu item identifiers. If it is MF_BYPOSITION, the other parameters specify the menu item positions.
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, use the GetLastError function.
Remarks
The CheckMenuRadioItem function sets the MFT_RADIOCHECK type flag and the MFS_CHECKED state for the item specified by idCheck and, at the same time, clears both flags for all other items in the group. The selected item is displayed using a bullet bitmap instead of a check-mark bitmap.
For more information about menu item type and state flags, see the MENUITEMINFO structure.
Example
For an example, see Example of Example of Using Custom Checkmark Bitmaps .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 4.0
UnicodeImplemented as Unicode version.
See Also
Menus , MENUITEMINFO
==原始网址==http://msdn.microsoft.com/en-us/library/ms647621(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 11:24:06