Condividi tramite


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 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.

Return Value

Nonzero if successful; otherwise zero.

Example

See the example for CListCtrl::GetColumn.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::GetColumn

Other Resources

CListCtrl Members