网站首页  词典首页

请输入您要查询的函数:

 

术语 checkradiobutton
释义 CheckRadioButton
语法:
BOOL CheckRadioButton( HWND hDlg,
int nIDFirstButton,
int nIDLastButton,
int nIDCheckButton
);
CheckRadioButton功能
添加一个到(检查)组中某个指定的单选按钮复选标记,并取消选中标记的(清除)组中的所有其他单选按钮。
参数
hDlg
[in]的句柄对话框,其中包含的单选按钮。
nIDFirstButton
[in]该组中的第一个单选按钮的标识符。
nIDLastButton
[in]该组中的最后单选按钮标识符。
nIDCheckButton
[in]的单选按钮标识符选择。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该CheckRadioButton函数发送BM_SETCHECK的信息传递给每一个单选按钮,在指定的组。
在nIDFirstButton和nIDLastButton参数指定的按钮标识符(通常按钮的资源ID)的范围。按钮的Tab键顺序的立场是不相关的,如果一个按钮的一部分,一组,但有一个指定的范围之外的身份证,它不受此呼吁。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
CheckDlgButton,IsDlgButtonChecked
==英文原文==CheckRadioButton Function
Adds a check mark to (checks) a specified radio button in a group and removes a check mark from (clears) all other radio buttons in the group.
Syntax
BOOL CheckRadioButton( HWND hDlg,
int nIDFirstButton,
int nIDLastButton,
int nIDCheckButton
);
Parameters
hDlg
[in] A handle to the dialog box that contains the radio button.
nIDFirstButton
[in] The identifier of the first radio button in the group.
nIDLastButton
[in] The identifier of the last radio button in the group.
nIDCheckButton
[in] The identifier of the radio button to select.
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, call GetLastError .
Remarks
The CheckRadioButton function sends a BM_SETCHECK message to each of the radio buttons in the indicated group.
The nIDFirstButton and nIDLastButton parameters specify a range of button identifiers (normally the resource IDs of the buttons). The position of buttons in the tab order is irrelevant; if a button forms part of a group, but has an ID outside the specified range, it is not affected by this call.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
CheckDlgButton , IsDlgButtonChecked
==原始网址==http://msdn.microsoft.com/en-us/library/bb761877(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:26:16