Programming |  Windows Programming |  CheckDlgButton

CheckDlgButton

Changes the check state of a button control.

Syntax

    BOOL CheckDlgButton(
        HWND hDlg,
        int nIDButton,
        UINT uCheck
    );

Parameters

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.

Function Information