Prev Next

HD_NOTIFY info  Overview  Group

The HD_NOTIFY structure contains information used to process notification messages from a header control.

typedef struct _HD_NOTIFY {  // hdn 

    NMHDR         hdr; 

    int           iItem; 

    int           iButton; 

    HD_ITEM FAR*  pitem; 

} HD_NOTIFY; 

 

Members

hdr
Specifies a NMHDR structure. The code member of this structure identifies the notification message being sent. It can be one of the following notification codes: HDN_BEGINTRACK, HDN_DIVIDERDBLCLICK, HDN_ENDTRACK, HDN_ITEMCHANGED, HDN_ITEMCHANGING, HDN_ITEMCLICK, or HDN_TRACK.
iItem
Specifies the index of item associated with notification.
iButton
Specifies the index of the mouse button involved in generating the notification message. This member can be one of these values:

Value

Meaning

0

Left button

1

Right button

2

Middle button

pitem
Pointer to an HD_ITEM structure that contains information about the header item associated with the notification message.

Remarks

When a header control sends the HDN_BEGINTRACK, HDN_DIVIDERDBLCLICK, HDN_ENDTRACK, HDN_ITEMCHANGED, HDN_ITEMCHANGING, HDN_ITEMCLICK, or HDN_TRACK notification codes, it passes a pointer to an HD_NOTIFY structure as the lParam parameter of a WM_NOTIFY message.

See Also

HD_ITEM, HDN_BEGINTRACK, HDN_DIVIDERDBLCLICK, HDN_ENDTRACK, HDN_ITEMCHANGED, HDN_ITEMCHANGING, HDN_ITEMCLICK, HDN_TRACK, WM_NOTIFY