The DL_CANCELDRAG notification message signals that the user has canceled a drag operation by clicking the right mouse button or pressing the ESC key. A drag list box sends DL_CANCELDRAG to its parent window in the form of a drag list message.
DL_CANCELDRAG
idCtl = (int) wParam;
pDragInfo = (LPDRAGLISTINFO) lParam;
Parameters
idCtl
Control identifier of the drag list box.
pDragInfo
Pointer to a DRAGLISTINFO structure that contains the DL_CANCELDRAG notification code, the handle to the drag list box, and the cursor position.
Return Values
No return value.
Remarks
By processing the DL_CANCELDRAG notification message, an application can reset its internal state to indicate that dragging is not in effect.
See Also