MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / HandleDropFiles

Method HandleDropFiles

Source/GUI/VCL/GUI_Main.cpp:2125–2143  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2123
2124//---------------------------------------------------------------------------
2125MESSAGE void __fastcall TMainF::HandleDropFiles (TMessage& Msg)
2126{
2127 //Clear the existing filelist
2128 if (M_Options_CloseAllAuto->Checked)
2129 M_File_Close_AllClick(NULL);
2130
2131 //Retrieving infos
2132 ZenLib::Char File[65536];
2133 HDROP hDrop=(HDROP)Msg.WParam;
2134 int NbFiles=DragQueryFile(hDrop, -1, NULL, 0);
2135 for (int i=0; i<NbFiles; i++)
2136 {
2137 DragQueryFile(hDrop, i, File, 65536-1);
2138 I->Open(File);
2139 }
2140 DragFinish (hDrop);
2141
2142 Refresh();
2143}
2144
2145//---------------------------------------------------------------------------
2146void __fastcall TMainF::CreateWnd()

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected