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

Method IsCopyValid

Source/FrameEditor.cpp:1158–1167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156}
1157
1158bool CFrameEditor::IsCopyValid(COleDataObject* pDataObject) const
1159{
1160 // Return true if the number of pasted frames will fit
1161 CFrameClipData ClipData; // // //
1162 if (CClipboard::ReadGlobalMemory(ClipData, pDataObject->GetGlobalData(m_iClipboard))) { // // //
1163 int Frames = ClipData.ClipInfo.Frames;
1164 return (GetSongFrameCount() + Frames) <= MAX_FRAMES; // // //
1165 }
1166 return false;
1167}
1168
1169void CFrameEditor::UpdateDrag(const CPoint &point)
1170{

Callers 1

OnDragEnterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected