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 code | Description |
|---|---|
|
Column information obtained. |
|
Column information not obtained. |
|
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 |
|
|
IDL |
|
|
DLL |
|
Show: