Fix the regression: absence of toolbar tooltip

This regression is du to 733c7e73de

Fix #10355, close #10359
pull/10369/head
Ashfaaq18 3 years ago committed by Don HO
parent 4cc3d9fd1a
commit f5ea4898cf

@ -3795,10 +3795,8 @@ void Notepad_plus::dropFiles(HDROP hdrop)
{
// Determinate in which view the file(s) is (are) dropped
POINT p;
::GetCursorPos(&p);
HWND hWnd = WindowFromPoint(p);
::MapWindowPoints(NULL, hWnd, &p, 1);
HWND hWin = ::RealChildWindowFromPoint(hWnd, p);
::DragQueryPoint(hdrop, &p);
HWND hWin = ::ChildWindowFromPointEx(_pPublicInterface->getHSelf(), p, CWP_SKIPINVISIBLE);
if (!hWin) return;
if ((_subEditView.getHSelf() == hWin) || (_subDocTab.getHSelf() == hWin))

@ -907,9 +907,8 @@ BOOL Notepad_plus::notify(SCNotification *notification)
POINT p;
::GetCursorPos(&p);
HWND hWnd = WindowFromPoint(p);
::MapWindowPoints(NULL, hWnd, &p, 1);
HWND hWin = ::RealChildWindowFromPoint(hWnd, p);
::MapWindowPoints(NULL, _pPublicInterface->getHSelf(), &p, 1);
HWND hWin = ::ChildWindowFromPointEx(_pPublicInterface->getHSelf(), p, CWP_SKIPINVISIBLE);
const int tipMaxLen = 1024;
static TCHAR docTip[tipMaxLen];
docTip[0] = '\0';

Loading…
Cancel
Save