Header_GetItem macro

Gets information about an item in a header control. You can use this macro or send the HDM_GETITEM message explicitly.

Syntax


BOOL Header_GetItem(
  HWND hwndHD,
  int index,
  LPHDITEM phdi
);

Parameters

hwndHD

Type: HWND

A handle to the header control.

index

Type: int

The index of the item for which information is to be retrieved.

phdi

Type: LPHDITEM

A pointer to an HDITEM structure. When the message is sent, the mask member indicates the type of information being requested. When the message returns, the other members receive the requested information. If the mask member specifies zero, the message returns TRUE but copies no information to the structure.

Return value

Returns TRUE if successful, or FALSE otherwise.

Remarks

If the HDI_TEXT flag is set in the mask member of the HDITEM structure, the control may change the pszText member of the structure to point to the new text instead of filling the buffer with the requested text. Applications should not assume that the text will always be placed in the requested buffer.

The Header_GetItem macro is defined as follows:

#define Header_GetItem(hwndHD, index, phdi)      \

    (BOOL)SendMessage((hwndHD), HDM_GETITEM,   \

    (WPARAM)(int)(index), (LPARAM)(LPHDITEM)(phdi))

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft