#include "DnDFileEditor.h" #include "MainFrame.h" bool DnDFileEditor::OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames) { size_t nFiles = filenames.GetCount(); if ( nFiles < 1 ) return false; mainEditor.Open(filenames[0]); return true; }