DM DROPNOTIFY
This message provides the source window with the target window handle and a pointer to the DRAGINFO structure allocated by the source window.
Syntax
param1 PDRAGINFO pDraginfo; /* Pointer to the DRAGINFO structure allocated by the source window receiving the message. */ param2 HWND hwndTarget; /* Handle of the target window that the drag set was dropped on. */ returns ULONG ulReserved; /* Reserved value, must be 0. */
Parameters
- pDraginfo (PDRAGINFO) - Input
- Pointer to the DRAGINFO structure allocated by the source window receiving the message.
- hwndTarget (HWND) - Input
- Handle of the target window that the drag set was dropped on.
- Note: If hwndTarget is equal to zero, the drag is canceled, and the drag set is not dropped. DrgCancelLazyDrag posts a DM_DROPNOTIFY message with an hwndTarget value of zero to the source window.
- ulReserved (ULONG) - returns
- Reserved value, must be 0.
Remarks
This message is posted to the source window involved in the drag operation when the drag set is dropped on a valid target window.
The source window must examine hwndTarget to determine if the target window is the same as the source window. If it is not, the source window must immediately free the DRAGINFO; if the source and target windows are the same, the DRAGINFO must be freed by the target window after completing the post-drop conversation.
Note: Lazy drag enabled applications are expected to process this message; standard drag applications are not.
Default Processing
The default message procedure sets ulReserved to 0.