Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NMHEADER structure

Contains information about header control notification messages. This structure supersedes the HD_NOTIFY structure.

Syntax


typedef struct tagNMHEADER {
  NMHDR  hdr;
  int    iItem;
  int    iButton;
  HDITEM *pitem;
} NMHEADER, *LPNMHEADER;

Members

hdr

Type: NMHDR

A NMHDR structure that contains information about the notification message.

iItem

Type: int

The zero-based index of the header item that is the focus of the notification message.

iButton

Type: int

A value specifying the index of the mouse button used to generate the notification message. This member can be one of the following values:

ValueMeaning
0

Left button

1

Right button

2

Middle button

 

pitem

Type: HDITEM*

An optional pointer to an HDITEM structure containing information about the item specified by iItem. The mask member of the HDITEM structure indicates which of its members are valid.

Remarks

While most header control notifications pass a pointer to an NMHEADER structure, only some of them use the pitem member to pass an HDITEM structure. Those that do use pitem may not provide complete information about the item. To obtain more information about an item, use HDM_GETITEM.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

Unicode and ANSI names

NMHEADERW (Unicode) and NMHEADERA (ANSI)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft