[NEW) (Author: Michael) Allow drop files onto doc switcher and other side panels.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1341 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2015-02-13 18:04:33 +00:00
parent 68fdd209b8
commit d5f8a23a09
1 changed files with 2 additions and 7 deletions

View File

@ -3013,15 +3013,10 @@ void Notepad_plus::dropFiles(HDROP hdrop)
HWND hWin = ::RealChildWindowFromPoint(_pPublicInterface->getHSelf(), p);
if (!hWin) return;
if ((_mainEditView.getHSelf() == hWin) || (_mainDocTab.getHSelf() == hWin))
switchEditViewTo(MAIN_VIEW);
else if ((_subEditView.getHSelf() == hWin) || (_subDocTab.getHSelf() == hWin))
if ((_subEditView.getHSelf() == hWin) || (_subDocTab.getHSelf() == hWin))
switchEditViewTo(SUB_VIEW);
else
{
::SendMessage(hWin, WM_DROPFILES, (WPARAM)hdrop, 0);
return;
}
switchEditViewTo(MAIN_VIEW);
int filesDropped = ::DragQueryFile(hdrop, 0xffffffff, NULL, 0);
BufferID lastOpened = BUFFER_INVALID;