IDirectManipulationDragDropEventHandler::OnDragDropStatusChange method (directmanipulation.h)
Called when a status change happens in the viewport that the drag-and-drop behavior is attached to.
Syntax
HRESULT OnDragDropStatusChange(
[in] IDirectManipulationViewport2 *viewport,
[in] DIRECTMANIPULATION_DRAG_DROP_STATUS current,
[in] DIRECTMANIPULATION_DRAG_DROP_STATUS previous
);
Parameters
[in] viewport
The updated viewport.
[in] current
The current state of the drag-drop interaction from DIRECTMANIPULATION_DRAG_DROP_STATUS.
[in] previous
The previous state of the drag-drop interaction from DIRECTMANIPULATION_DRAG_DROP_STATUS.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If a class is implementing IDirectManipulationViewportEventHandler it should also implement IDirectManipulationDragDropEventHandler if that viewport will use drag and drop. Direct Manipulation will query the IDirectManipulationViewportEventHandler instances to verify that they also implement IDirectManipulationDragDropEventHandler.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
Target Platform | Windows |
Header | directmanipulation.h |