网站首页  词典首页

请输入您要查询的函数:

 

术语 checkdlgbutton
释义 CheckDlgButton
语法:
BOOL CheckDlgButton( HWND hDlg,
int nIDButton,
UINT uCheck
);
CheckDlgButton功能
变化的一个按钮控制检查的状态。
参数
hDlg
[in]的句柄对话框,其中包含按钮。
nIDButton
[in]的按钮的标识进行修改。
uCheck
[in]的按钮检查状态。此参数可以是下列值之一。
BST_CHECKED
设置按钮的状态检查。
BST_INDETERMINATE
设置按钮的状态为灰色,表明处于不确定状态。使用此值只有在按钮具有BS_3STATE或BS_AUTO3STATE风格。
BST_UNCHECKED
设置按钮的状态,以清除
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该CheckDlgButton函数发送BM_SETCHECK信息,在指定的对话框中指定的按钮控制。
例如
有关示例,请参阅创建对话框中使用无模式对话框。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
参见
CheckRadioButton,IsDlgButtonChecked
==英文原文==CheckDlgButton Function
Changes the check state of a button control.
Syntax
BOOL CheckDlgButton( HWND hDlg,
int nIDButton,
UINT uCheck
);
Parameters
hDlg
[in] A handle to the dialog box that contains the button.
nIDButton
[in] The identifier of the button to modify.
uCheck
[in] The check state of the button. This parameter can be one of the following values.
BST_CHECKED
Sets the button state to checked.
BST_INDETERMINATE
Sets the button state to grayed, indicating an indeterminate state. Use this value only if the button has the BS_3STATE or BS_AUTO3STATE style.
BST_UNCHECKED
Sets the button state to cleared
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 CheckDlgButton function sends a BM_SETCHECK message to the specified button control in the specified dialog box.
Example
For an example, see 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
CheckRadioButton , IsDlgButtonChecked
==原始网址==http://msdn.microsoft.com/en-us/library/bb761875(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:00