Partager via


Header_OrderToIndex (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Header Controls Macros
HDM_ORDERTOINDEX