Help Center

CHeader.SetOrderArraymethod

Sets the left-to-right order of header items.

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION SetOrderArray (BYVAL hHeader AS HWND, BYVAL iCount AS LONG, BYVAL lpiArray AS LONG PTR) AS BOOLEAN

Parameters

NameDescription
hHeaderThe handle of the header control.
iCountThe size of the buffer at lpiArray, in elements. This value must equal the value returned by GetItemCount.
lpiArrayA pointer to an array that specifies the order in which items should be displayed, from left to right. For example, if the contents of the array are {2,0,1}, the control displays item 2, item 0, and item 1, from left to right.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Sets the left-to-right order of header items.

Reference

  • Include file CHeader.inc
  • Defined in AfxNova/CHeader.inc:549
  • Documented in Windows/WIndows Controls/CHeader Class.md
  • Topic: CHeader Class