Export (0) Print
Expand All
MFC
Expand Minimize

CListCtrl::SetColumn 

Sets the attributes of a list view column.


BOOL SetColumn(
   int nCol,
   const LVCOLUMN* pColumn 
);

Parameters

nCol

Index of the column whose attributes are to be set.

pColumn

Address of an LVCOLUMN structure that contains the new column attributes, as described in the Platform SDK. The structure's mask member specifies which column attributes to set. If the mask member specifies the LVCF_TEXT value, the structure's pszText member is the address of a null-terminated string and the structure's cchTextMax member is ignored.

Nonzero if successful; otherwise zero.

See the example for CListCtrl::GetColumn.

Community Additions

ADD
Show:
© 2015 Microsoft