HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

Drag & Drop

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_NONEDragging is not supported. This is the default.
SFTMASK_DRAG_MANUALWhen 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


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.