CListCtrl::SetColumnWidth

BOOL SetColumnWidth( int nCol, int cx );

Return Value

Nonzero if successful; otherwise zero.

Parameters

nCol

Index of the column whose width is to be set. In list view, this parameter must be -1.

cx

The new width of the column. Can be either LVSCW_AUTOSIZE or LVSCW_AUTOSIZE_USE_HEADER, as described in LVM_SETCOLUMNWIDTH in the Platform SDK.

Remarks

Changes the width of a column in report view or list view.

CListCtrl OverviewClass MembersHierarchy Chart

See Also   CListCtrl::GetColumnWidth, CListCtrl::GetStringWidth