Επεξεργασία

Κοινή χρήση μέσω


IFileDialogControlEvents::OnButtonClicked method (shobjidl.h)

Called when the user clicks a command button.

Syntax

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

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.

Return value

Type: HRESULT

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

Requirements

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