ItemDragDropData::HasDataFormat
bool HasDataFormat (DGDragFormat format) const;
Parameters
- format
DGDragFormat type parameter. Used to specify the drag format in character style like: 'TEXT', 'FILE' etc.
Return Value
Description
Example
// Method Example:
void TextControl::RichEditDragEntered (const DG::RichEditDropTargetEvent& 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;
}
}Cheking for available data formats in a richedit drag target.