IFileDialogCustomize::RemoveControlItem method

Removes an item from a container control in the dialog.

Syntax

HRESULT RemoveControlItem(
  DWORD dwIDCtl,
  DWORD dwIDItem
);

Parameters

dwIDCtl

Type: DWORD

The ID of the container control from which the item is to be removed.

dwIDItem

Type: DWORD

The ID of the item.

Return Value

Type: HRESULT

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

Remarks

Container controls include option button groups, combo boxes, drop-down lists on the Open or Save button, and menus.

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)