IColumnManager::GetColumnInfo method

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

Syntax


HRESULT GetColumnInfo(
  [in]       REFPROPERTYKEY propkey,
  [in, out]  CM_COLUMNINFO *pcmci
);

Parameters

propkey [in]

Type: REFPROPERTYKEY

A reference to a PROPERTYKEY structure.

pcmci [in, out]

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 codeDescription
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]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft