NMHDDISPINFO

This structure contains information used in handling HDN_GETDISPINFO notification messages.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later

Syntax

typedef struct tagNMHDDISPINFO {
NMHDR hdr;
int iItem;
UINT mask;
LPTSTR pszText;
int cchTextMax;
int iImage;
LPARAM lParam;
}
NMHDDISPINFO, FAR* LPNMHDDISPINFO;

Members

hdr

NMHDR structure containing information about this notification message.

iItem

Zero-based index of the item in the header control.

mask

Specifies which members of the structure must be filled in by the owner of the header control. It can be a combination of the following values:

Value Description
HDI_TEXT The pszText member must be filled in.
HDI_IMAGE The iImage member must be filled in.
HDI_LPARAM The lParam member must be filled in.
HDI_DI_SETITEM A return value. Specifies that the header control should store the item information and not ask for it again.

pszText

Pointer to a null-terminated string that contains the text to be displayed for the header item.

cchTextMax

Size of the buffer that pszText points to.

iImage

Zero-based index of an image within the image list. The specified image will be displayed with the header item, but does not take the place of the image specified in the hbm member. If iImage is set to I_IMAGECALLBACK, the control requests image information for this item by using HDN_GETDISPINFO notification messages.

lParam