Default Header Control Message Processing

This section describes the window messages handled by the window procedure for the WC_HEADER window class.

Message
Processing performed
WM_CREATE
Initializes the header control.
WM_DESTROY
Frees resources allocated for the header control.
WM_ERASEBKGND
Erases the background of the header control using the current background color for the control.
WM_GETDLGCODE
Returns a combination of the DLGC_WANTTAB and DLGC_WANTARROWS values.
WM_GETFONT
Returns the handle of the current font, which is used by the header control to draw its text.
WM_LBUTTONDBLCLK
Captures mouse input. If the mouse cursor is on a divider, the control sends a HDN_BEGINTRACK notification message and begins tracking mouse movement. If the cursor is on a header item, the control redraws the item in the style that indicates the item is pressed.
WM_LBUTTONDOWN
Same as the WM_LBUTTONDBLCLK message.
WM_LBUTTONUP
Releases the mouse capture. If the control was tracking mouse movement, it sends the HDN_ENDTRACK notification message and redraws the header control. Otherwise, the control sends the HDN_ITEMCLICK notification message and redraws the header item that was clicked.
WM_MOUSEMOVE
If a divider is being dragged, the control sends the HDN_TRACK notification message and redraws itself. If the left mouse button is down and the cursor is on an item, the control redraws the item in the style that indicates the item is pressed.
WM_NCCREATE
Allocates and initializes an internal data structure.
WM_NCDESTROY
Frees resources allocated by the header control.
WM_PAINT
Paints the invalid region of the header control. If the wParam parameter is non-NULL, the control assumes that the value is an HDC and paints using that device context.
WM_SETCURSOR
Sets the cursor shape, depending on whether the cursor is on a divider or in a header item.
WM_SETFONT
Selects a new font handle into the device context for the header control.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database