ItemDragDropData::GetLocationCount
ULong GetLocationCount (void) const;
Return Value
Description
Example
// Method Example: void PictureControl::UserItemDragEntered (const DG::UserItemDropTargetEvent& ev, DG::DragDrop::Effect* effect, bool* /*defBehaviour*/) { *effect = DG::DragDrop::Reject; if (ev.HasDataFormat ('FILE') && ev.GetLocationCount () == 1) { IO::Location fileLoc; ev.GetLocation (0, fileLoc); if (FTM::FileTypeManager::Match (fileLoc, BMPFile, internalFileTypes)) *effect = DG::DragDrop::Accept; } }
Description of the example.