IHeaderCtrl::GetColumnWidth
[This is preliminary documentation and subject to change.]
Retrieves the width of the column in pixels.
HRESULT GetColumnWidth(
int nCol, // Zero-based index of the column
int * pWidth // Pointer to the width
);
Parameters
-
nCol
-
[in] Zero-based index of the column from which the width is to be retrieved.
-
pWidth
-
[out] Pointer to width of the column. This parameter must not be NULL.
Return Values
-
S_OK
-
The column width was successfully retrieved.
-
E_UNEXPECTED
-
The current result view is not the console-provided default view.
-
E_INVALIDARG
-
The nCol parameter is not a valid column index.
-
E_POINTER
-
The pWidth parameter is NULL.
Notes to Callers
GetColumnWidth can be called successfully even if there are items already in the list.
See Also
IHeaderCtrl