MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnDropFiles

Method OnDropFiles

DebugView++/MainFrame.cpp:491–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void CMainFrame::OnDropFiles(HDROP hDropInfo)
492{
493 auto guard = make_guard([hDropInfo]() { DragFinish(hDropInfo); });
494
495 if (DragQueryFile(hDropInfo, 0xFFFFFFFF, nullptr, 0) == 1)
496 {
497 std::vector<wchar_t> filename(DragQueryFile(hDropInfo, 0, nullptr, 0) + 1);
498 if (DragQueryFile(hDropInfo, 0, filename.data(), filename.size()))
499 HandleDroppedFile(std::wstring(filename.data()));
500 }
501}
502
503LRESULT CMainFrame::OnSysCommand(UINT nCommand, CPoint)
504{

Callers

nothing calls this directly

Calls 3

make_guardFunction · 0.85
dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected