IFileDialogCustomize::GetSelectedControlItem method

Gets a particular item from specified container controls in the dialog.

Syntax


HRESULT GetSelectedControlItem(
  [in]  DWORD dwIDCtl,
  [out] DWORD *pdwIDItem
);

Parameters

dwIDCtl [in]

Type: DWORD

The ID of the container control.

pdwIDItem [out]

Type: DWORD*

The ID of the item that the user selected in the control.

Return value

Type: HRESULT

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

Remarks

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.

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: