Export (0) Print
Expand All
MFC
Expand Minimize
This topic has not yet been rated - Rate this topic

CListCtrl::SetColumnWidth

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

BOOL SetColumnWidth(
   int nCol,
   int cx 
);
nCol

Index of the column for which the width is to be set. In list view, this parameter must be 0.

cx

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

Nonzero if successful; otherwise zero.

Header: afxcmn.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.