Export (0) Print
Expand All

HDM_GETITEM message

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

Parameters

wParam

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

lParam

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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Unicode and ANSI names

HDM_GETITEMW (Unicode) and HDM_GETITEMA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft