MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnDrop

Method OnDrop

Source/FamiTrackerView.cpp:3379–3406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3377}
3378
3379BOOL CFamiTrackerView::OnDrop(COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point)
3380{
3381 TRACE(L"OLE: OnDrop\n");
3382
3383 BOOL Result = FALSE;
3384
3385 // Perform drop
3386 if (m_bEditEnable && m_nDropEffect != DROPEFFECT_NONE) { // // //
3387 bool bCopy = (dropEffect == DROPEFFECT_COPY) || (m_bDragSource == false);
3388
3389 m_pPatternEditor->UpdateDrag(point);
3390
3391 // Get clipboard data
3392 CPatternClipData ClipData; // // //
3393 if (CClipboard::ReadGlobalMemory(ClipData, pDataObject->GetGlobalData(m_iClipboard))) {
3394 m_pPatternEditor->PerformDrop(std::move(ClipData), bCopy, m_bDropMix); // // // ???
3395 m_bDropped = true;
3396 }
3397
3398 InvalidateCursor();
3399
3400 Result = TRUE;
3401 }
3402
3403 m_nDropEffect = DROPEFFECT_NONE;
3404
3405 return Result;
3406}
3407
3408void CFamiTrackerView::BeginDragData(int ChanOffset, int RowOffset)
3409{

Callers

nothing calls this directly

Calls 2

PerformDropMethod · 0.80
UpdateDragMethod · 0.45

Tested by

no test coverage detected