Skip to content

Latest commit

 

History

History
83 lines (64 loc) · 3.27 KB

nf-shobjidl-ifiledialogcontrolevents-onitemselected.md

File metadata and controls

83 lines (64 loc) · 3.27 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shobjidl.IFileDialogControlEvents.OnItemSelected
IFileDialogControlEvents::OnItemSelected (shobjidl.h)
Called when an item is selected in a combo box, when a user clicks an option button (also known as a radio button), or an item is chosen from the Tools menu.
IFileDialogControlEvents interface [Windows Shell]
OnItemSelected method
IFileDialogControlEvents.OnItemSelected
IFileDialogControlEvents::OnItemSelected
OnItemSelected
OnItemSelected method [Windows Shell]
OnItemSelected method [Windows Shell]
IFileDialogControlEvents interface
shell.IFileDialogControlEvents_OnItemSelected
shell_IFileDialogControlEvents_OnItemSelected
shobjidl/IFileDialogControlEvents::OnItemSelected
shell\IFileDialogControlEvents_OnItemSelected.htm
shell
4c96d0b7-74d1-4f87-946d-beeaad517d91
12/05/2018
IFileDialogControlEvents interface [Windows Shell],OnItemSelected method, IFileDialogControlEvents.OnItemSelected, IFileDialogControlEvents::OnItemSelected, OnItemSelected, OnItemSelected method [Windows Shell], OnItemSelected method [Windows Shell],IFileDialogControlEvents interface, shell.IFileDialogControlEvents_OnItemSelected, shell_IFileDialogControlEvents_OnItemSelected, shobjidl/IFileDialogControlEvents::OnItemSelected
shobjidl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Shobjidl.idl
Windows
19H1
IFileDialogControlEvents::OnItemSelected
shobjidl/IFileDialogControlEvents::OnItemSelected
c++
APIRef
kbSyntax
COM
Shobjidl.h
IFileDialogControlEvents.OnItemSelected

IFileDialogControlEvents::OnItemSelected

-description

Called when an item is selected in a combo box, when a user clicks an option button (also known as a radio button), or an item is chosen from the Tools menu.

-parameters

-param pfdc [in]

Type: IFileDialogCustomize*

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

-param dwIDCtl [in]

Type: DWORD

The ID of the control in which the user made a selection.

-param dwIDItem [in]

Type: DWORD

The ID of the selection.

-returns

Type: HRESULT

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

-remarks

This notification is not sent when the user chooses an item from the drop-down menu attached to the Open button, because the action taken in that case is always the same: close the dialog as if the user had simply clicked the Open button. For that situation, the application can call GetSelectedControlItem to obtain the item the user chose from that menu.