Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/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 intthat specifies the index of the item. If iis 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
Windows Mobile Windows Mobile Version 5.0 and later

See Also