Muokkaa

Jaa


HDN_ENDDRAG notification code

Sent by a header control when a drag operation has ended on one of its items. This notification code is sent as a WM_NOTIFY message. Only header controls that are set to the HDS_DRAGDROP style send this notification code.

HDN_ENDDRAG

   pNMHeader = (LPNMHEADER) lParam;

Parameters

lParam

A pointer to an NMHEADER structure containing information about the header item that was being dragged.

Return value

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

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

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h