IFileDialogControlEvents::OnCheckButtonToggled method (shobjidl.h)

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

Syntax

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

Parameters

pfdc

Type: IFileDialogCustomize*

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

dwIDCtl

Type: DWORD

The ID of the button that the user clicked.

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