This documentation is archived and is not being maintained.


Sets the attributes of a list view column.

BOOL SetColumn( 
   int nCol, 
   const LVCOLUMN* pColumn  


Index of the column whose attributes are to be set.


Address of an LVCOLUMN structure that contains the new column attributes, as described in the Windows 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.

Header: afxcmn.h