| 3377 | } |
| 3378 | |
| 3379 | BOOL 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 | |
| 3408 | void CFamiTrackerView::BeginDragData(int ChanOffset, int RowOffset) |
| 3409 | { |
nothing calls this directly
no test coverage detected