EditDropTargetEvent::GetSource
EditControl * GetSource (void) const;
Return Value
Example
// Method Example:
void TextControl::EditDragEntered (const DG::EditDropTargetEvent& ev, DG::DragDrop::Effect* effect, bool* defBehaviour)
{
if (ev.GetSource () == &controlledView->editControl && (ev.HasDataFormat ('TEXT') || ev.HasDataFormat ('FILE'))) {
*effect = DG::DragDrop::Accept;
if (ev.HasDataFormat ('TDDE'))
*defBehaviour = false;
}
}Use GetSource to identify the event source.