Help Center

CHeader.OrderToIndexmethod

Retrieves an index value for an item based on its order in the header control.

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION OrderToIndex (BYVAL hHeader AS HWND, BYVAL i AS LONG) AS LONG

Parameters

NameDescription
hHeaderThe handle of the header control.
iThe order that the item appears within the header control, from left to right. The index value of the item in the far left column would be 0, the next item to the right would be 1, and so on.

Return value

Returns an int that specifies the index of the item. If i is invalid (negative or too large), the return equals i.

Description

Retrieves an index value for an item based on its order in the header control.

Reference

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