The masked edit control can participate in application-implemented drag & drop of its selected text.
The iDragMode field of the SFTMASK_CONTROL structure defines the drag behavior:
| SFTMASK_DRAG_NONE | Dragging is not supported. This is the default. |
| SFTMASK_DRAG_MANUAL | When the user presses the left mouse button on the selected (highlighted) text and starts to drag, the NM_SFTMASK_DRAGSTARTING notification is sent to the parent window. The application implements the actual drag & drop operation (e.g., using OLE drag & drop) and sets the fDragUsed member of the notification structure to indicate that the drag was used. |
The ShowDropPosition function can be used by a drop target to visualize the insert location while dragging over the control, and GetInsertPosition calculates the caret location for a drop at a given point.
See Also Notifications | ShowDropPosition | GetInsertPosition | SFTMASK_CONTROL