Header_OrderToIndex

This macro retrieves an index value for an item based on its order in the header control.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later
Related message: HDM_ORDERTOINDEX

Syntax

int Header_OrderToIndex(HWND hwndHD, int iOrder);

Parameters

hwndHD

Handle to a header control.

iOrder

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 Values

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