Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>isdlgbuttonchecked()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
IsDlgButtonChecked()
Return the status of a dialog button or check box
------------------------------------------------------------------------------

Syntax
IsDlgButtonChecked( <hWndDlg>, <nId> )   -->   nResult

Arguments
<hWndDlg> is the handle of the dialog window.

<nId> is the numeric id of the item whose value is wanted.

Returns
Zero (0) means off (or not selected), non-zero means on (or
selected).  For a 3-state check box, one (1) is an X, two (2)
is a dark gray colour.  If <hWndDlg> is invalid, -1 is
returned.

Description
This function returns the current status of a button
(including a radio-button) or check box in a dialog.

Example
// start a modeless dialog
hDlg = CreateDialog(  , "dlg",  ,                           ;
                  { | hDlg, msg, wparam, lparam |           ;
                    ResDlgModeless( hDlg, msg, wparam, lparam ) } )

// elsewhere . . .
// get the current value
nValue = IsDlgButtonChecked( hDlg, ID_CHECKBOX )


See Also: CheckDlgButton() CheckRadioButton() CreateDialog() DialogBox()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson