| 489 | } |
| 490 | |
| 491 | void 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 | |
| 503 | LRESULT CMainFrame::OnSysCommand(UINT nCommand, CPoint) |
| 504 | { |
nothing calls this directly
no test coverage detected