IFileDialogControlEvents::OnCheckButtonToggled method (shobjidl.h)

Called when the user changes the state of a check button (check box).

Syntax

HRESULT OnCheckButtonToggled(
  [in] IFileDialogCustomize *pfdc,
  [in] DWORD                dwIDCtl,
  [in] BOOL                 bChecked
);

Parameters

[in] pfdc

Type: IFileDialogCustomize*

A pointer to the interface through which the application added controls to the dialog.

[in] dwIDCtl

Type: DWORD

The ID of the button that the user clicked.

[in] bChecked

Type: BOOL

A BOOL indicating the current state of the check button. TRUE if checked; FALSE otherwise.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl.h