Condividi tramite


CListCtrl::SetColumnOrderArray

Sets the column order (left to right) of a list view control.

BOOL SetColumnOrderArray(
   int iCount,
   LPINT piArray 
);

Parameters

  • piArray
    A pointer to a buffer containing the index values of the columns in the list view control (from left to right). The buffer must be large enough to contain the total number of columns in the list view control.

  • iCount
    Number of columns in the list view control.

Return Value

Nonzero if successful; otherwise zero.

Remarks

This member function implements the behavior of the Win32 macro, ListView_SetColumnOrderArray, as described in the Windows SDK.

Example

See the example for CListCtrl::GetColumnOrderArray.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::GetColumnOrderArray

Other Resources

CListCtrl Members