IFileDialogControlEvents::OnButtonClicked method

Called when the user clicks a command button.

Syntax


HRESULT OnButtonClicked(
  [in] IFileDialogCustomize *pfdc,
  [in] DWORD                dwIDCtl
);

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.

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: