다음을 통해 공유


CHeaderCtrl::SetOrderArray

Sets the left-to-right order of items in a header control.

BOOL SetOrderArray(
   int iCount,
   LPINT piArray 
);

Parameters

  • iCount
    The number of header control items.

  • piArray
    A pointer to the address of a buffer that receives the index values of the items in the header control, in the order in which they appear from left to right.

Return Value

Nonzero if successful; otherwise 0.

Remarks

This member function implements the behavior of the Win32 macro HDM_SETORDERARRAY, as described in the Windows SDK. It is provided to support header item ordering.

Example

See the example for CHeaderCtrl::GetOrderArray.

Requirements

Header: afxcmn.h

See Also

Concepts

CHeaderCtrl Class

CHeaderCtrl Members

Hierarchy Chart

CHeaderCtrl::GetOrderArray

CHeaderCtrl::OrderToIndex