'Handle a file being dropped from file manager'

def OnDropFiles(self, msg):

    hDropInfo = msg[2]
    self.frame.SetActiveWindow()
    nFiles = win32api.DragQueryFile(hDropInfo)
    try:
        for iFile in range(0, nFiles):
            fileName = win32api.DragQueryFile(hDropInfo, iFile)
            win32ui.GetApp().OpenDocumentFile(fileName)
    finally:
        win32api.DragFinish(hDropInfo)
    return 0
