网站首页  词典首页

请输入您要查询的函数:

 

术语 isdlgbuttonchecked
释义 IsDlgButtonChecked
语法:
UINT IsDlgButtonChecked( HWND hDlg,
int nIDButton
);
IsDlgButtonChecked功能
The IsDlgButtonChecked function determines whether a button control is checked or whether a three-state button control is checked, unchecked, or indeterminate.
参数
hDlg
[in]的句柄对话框,其中包含按钮控制。
nIDButton
[in]的按钮控制的标识符。
返回值
从与BS_AUTOCHECKBOX,BS_AUTORADIOBUTTON,BS_AUTO3STATE,BS_CHECKBOX,BS_RADIOBUTTON,或BS_3STATE创建的样式可在以下表中的值之一的按钮返回值。如果按钮有任何其他样式,返回值是零。
BST_CHECKEDThe按钮被选中。
BST_INDETERMINATEThe按钮处于不确定状态(只适用于该按钮具有BS_3STATE或BS_AUTO3STATE样式)。
BST_UNCHECKEDThe按钮未被选中。
备注
该IsDlgButtonChecked函数BM_GETCHECK消息发送到指定的按钮控制。
例如
有关示例,请参见标题为“创建无模式对话框”对话框中使用。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
CheckDlgButton
==英文原文==IsDlgButtonChecked Function
The IsDlgButtonChecked function determines whether a button control is checked or whether a three-state button control is checked, unchecked, or indeterminate.
Syntax
UINT IsDlgButtonChecked( HWND hDlg,
int nIDButton
);
Parameters
hDlg
[in] A handle to the dialog box that contains the button control.
nIDButton
[in] The identifier of the button control.
Return Value
The return value from a button created with the BS_AUTOCHECKBOX, BS_AUTORADIOBUTTON, BS_AUTO3STATE, BS_CHECKBOX, BS_RADIOBUTTON, or BS_3STATE styles can be one of the values in the following table. If the button has any other style, the return value is zero.
BST_CHECKEDThe button is checked.
BST_INDETERMINATEThe button is in an indeterminate state (applies only if the button has the BS_3STATE or BS_AUTO3STATE style).
BST_UNCHECKEDThe button is not checked.
Remarks
The IsDlgButtonChecked function sends a BM_GETCHECK message to the specified button control.
Example
For an example, see the section titled "Creating a Modeless Dialog Box" in Using Dialog Boxes .
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
==原始网址==http://msdn.microsoft.com/en-us/library/bb761879(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:16:21