HDN_ENDDRAG

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message is sent by a header control when a drag operation has ended on one of its items. It is sent only by header controls set to the HDS_DRAGDROP style, and is sent as a WM_NOTIFY message.

Syntax

HDN_ENDDRAG pNMHeader = (LPNMHEADER) lParam;

Parameters

  • pNMHeader
    Pointer to an NMHEADER structure that contains data about the header item dragged.

Return Value

To enable the control to automatically place and reorder the item, return FALSE. Return TRUE to prevent the item from being placed.

Remarks

If the owner is performing external (manual) drag-and-drop management, it must return FALSE. The owner then must reorder header items manually by sending HDM_SETITEM or HDM_SETORDERARRAY.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Header Controls Notifications
HDM_SETITEM
HDM_SETORDERARRAY
WM_NOTIFY
NMHEADER