Header_GetOrderArrayHeader_GetOrderArray*
*Contents  *Index  *Topic Contents
*Previous Topic: Header_GetItemRect
*Next Topic: Header_GetUnicodeFormat

Header_GetOrderArray


BOOL Header_GetOrderArray(
    HWND hwndHD,
    int iSize,
    int *lpiArray
);

Retrieves the current left-to-right order of items in a header control. You can use this macro or send the HDM_GETORDERARRAY message explicitly.

hwndHD
Handle to a header control.
iSize
Number of integer elements that lpiArray can hold. This value must be equal to or greater than the number of items in the control (see HDM_GETITEMCOUNT).
lpiArray
Address of an array of integers that receive the index values for items in the header. The number of elements in this array is specified in iSize and must be equal to or greater than the number of items in the control. For example, the following code fragment will reserve enough memory to hold the index values.
int iItems,
    *lpiArray;
	
// Get memory for buffer
if((iItems = SendMessage(hwndHD, HDM_GETITEMCOUNT, 0,0))!=-1)
    if(!(lpiArray = calloc(iItems,sizeof(int))))
MessageBox(hwnd, "Out of memory.","Error", MB_OK);

Version 4.70


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.