IFileDialogControlEvents::OnCheckButtonToggled method

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

pfdc [in]

Type: IFileDialogCustomize*

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

dwIDCtl [in]

Type: DWORD

The ID of the button that the user clicked.

bChecked [in]

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]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Show: