Header_OrderToIndex (Windows CE 5.0)

Send Feedback

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

#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 Values

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

OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.

See Also

Header Controls Macros | HDM_ORDERTOINDEX

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.