IHeaderCtrl::SetColumnWidth

[This is preliminary documentation and subject to change.]

Sets the width of a specific column in pixels.

HRESULT SetColumnWidth(
  int nCol,  // Zero-based index of the column
  int nWidth // Width of the column
);
 

Parameters

nCol
[in] Zero-based index specifying the location of the column relative to other columns in the result pane.
nWidth
[in] Specifies the width of the column in pixels. If MMCLV_AUTO is given, the width of the column is determined based on the width of the text in the column's title.

Return Values

S_OK
The width of the column was successfully set.
E_UNEXPECTED
The current result view is not the console-provided default view.
E_INVALIDARG
The nCol parameter is invalid.

See Also

IHeaderCtrl