Fix 2 RTL issues: wrong path in tooltip and file drag & drop Bug
Fix 2 RTL issues: 1. wrong path in tooltip of tab (#8520). 2. the file drag and drop bug (#8730) - now user can drag and drop to the exact view. Fix #8520, fix #8730, close #10348
This commit is contained in:
parent
14a104ad46
commit
733c7e73de
|
@ -3795,8 +3795,10 @@ void Notepad_plus::dropFiles(HDROP hdrop)
|
|||
{
|
||||
// Determinate in which view the file(s) is (are) dropped
|
||||
POINT p;
|
||||
::DragQueryPoint(hdrop, &p);
|
||||
HWND hWin = ::RealChildWindowFromPoint(_pPublicInterface->getHSelf(), p);
|
||||
::GetCursorPos(&p);
|
||||
HWND hWnd = WindowFromPoint(p);
|
||||
::MapWindowPoints(NULL, hWnd, &p, 1);
|
||||
HWND hWin = ::RealChildWindowFromPoint(hWnd, p);
|
||||
if (!hWin) return;
|
||||
|
||||
if ((_subEditView.getHSelf() == hWin) || (_subDocTab.getHSelf() == hWin))
|
||||
|
|
|
@ -907,8 +907,9 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||
|
||||
POINT p;
|
||||
::GetCursorPos(&p);
|
||||
::ScreenToClient(_pPublicInterface->getHSelf(), &p);
|
||||
HWND hWin = ::RealChildWindowFromPoint(_pPublicInterface->getHSelf(), p);
|
||||
HWND hWnd = WindowFromPoint(p);
|
||||
::MapWindowPoints(NULL, hWnd, &p, 1);
|
||||
HWND hWin = ::RealChildWindowFromPoint(hWnd, p);
|
||||
const int tipMaxLen = 1024;
|
||||
static TCHAR docTip[tipMaxLen];
|
||||
docTip[0] = '\0';
|
||||
|
|
Loading…
Reference in New Issue