MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / OnDropFiles

Method OnDropFiles

nsfplug_ui/NSFTrackDialog.cpp:602–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void NSFTrackDialog::OnDropFiles(HDROP hDropInfo)
603{
604 UINT nCount, wSize;
605 int nSize;
606 CArray <char,int> aryFile;
607 CArray <wchar_t, int> w_aryFile;
608
609 if(parent->wa2mod)
610 {
611 parent->wa2mod->ClearList();
612 nCount = DragQueryFileW(hDropInfo, -1, NULL, 0);
613 for(UINT i=0;i<nCount;i++)
614 {
615 wSize = DragQueryFileW(hDropInfo, i, NULL, 0);
616 w_aryFile.SetSize(wSize+1);
617 DragQueryFileW(hDropInfo, i, w_aryFile.GetData(), wSize+1);
618 nSize = file_utf8(w_aryFile.GetData(),NULL,0);
619 if (nSize < 0) nSize = 1;
620 aryFile.SetSize(nSize);
621 file_utf8(w_aryFile.GetData(),aryFile.GetData(),nSize);
622 parent->wa2mod->QueueFile(aryFile.GetData());
623 }
624 parent->wa2mod->PlayStart();
625 }
626
627 __super::OnDropFiles(hDropInfo);
628}
629
630void NSFTrackDialog::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
631{

Callers

nothing calls this directly

Calls 3

ClearListMethod · 0.80
QueueFileMethod · 0.80
PlayStartMethod · 0.80

Tested by

no test coverage detected