IFileDialogCustomize::GetSelectedControlItem method (shobjidl_core.h)
Gets a particular item from specified container controls in the dialog.
HRESULT GetSelectedControlItem( [in] DWORD dwIDCtl, [out] DWORD *pdwIDItem );
The ID of the container control.
The ID of the item that the user selected in the control.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
To determine the user's final choice, this method can be called on option button groups, combo boxes, and drop-down lists on the Open or Save button after the dialog has closed. This method cannot be called on menus.
For option button groups and combo boxes, this method can also be called while the dialog is showing, to determine the current choice.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|