Header_OrderToIndex (Compact 2013)

3/28/2014

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

Syntax

#define Header_OrderToIndex(hwnd, i) \
                      (int)SNDMSG((hwnd), HDM_ORDERTOINDEX, (WPARAM)i, 0)

Parameters

  • hwnd
    Handle to a header control.
  • i
    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, (that is, negative or too large) the return value equals i.

Requirements

Header

commctrl.h

See Also

Reference

Header Controls Macros
HDM_ORDERTOINDEX