IColumnManager::GetColumnInfo method

Gets information about each column: width, visibility, display name, and state.

Syntax

HRESULT GetColumnInfo(
  REFPROPERTYKEY propkey,
  CM_COLUMNINFO  *pcmci
);

Parameters

propkey

Type: REFPROPERTYKEY

A reference to a PROPERTYKEY structure.

pcmci

Type: CM_COLUMNINFO*

A pointer to a CM_COLUMNINFO structure. On entry, set this structure's dwMask member to specify the information to retrieve. Also set its cbSize member. When this method returns successfully, the structure contains the requested information.

Return Value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Column information obtained.
failure
Column information not obtained.
E_INVALIDARG
Indicates that cbSize member of pcmci does not equal the size of CM_COLUMNINFO.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 5.0 or later)