IShellDetails::ColumnClick method (shlobj_core.h)

Rearranges a column.

Syntax

HRESULT ColumnClick(
  UINT iColumn
);

Parameters

iColumn

Type: UINT

The index of the column to be rearranged.

Return value

Type: HRESULT

Returns S_FALSE to tell the calling application to sort the selected column. Otherwise, returns S_OK if successful, a COM error code otherwise.

Remarks

This method is called when a client of a folder object wants to sort the object's items based on the contents of one of the Details columns. Folder objects typically return S_FALSE.

Note to Implementers

For Windows 2000 and later systems, folder objects should implement IShellFolder2 instead of this interface. However, if your application needs to function on earlier systems, it should also expose IShellDetails.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj_core.h
DLL Shell32.dll (version 5.0 or later)

See also

IShellDetails

IShellDetails::GetDetailsOf