Fix the regression: absence of toolbar tooltip
This regression is du to 733c7e73de
Fix #10355, close #10359
This commit is contained in:
parent
4cc3d9fd1a
commit
f5ea4898cf
|
@ -3795,10 +3795,8 @@ void Notepad_plus::dropFiles(HDROP hdrop)
|
||||||
{
|
{
|
||||||
// Determinate in which view the file(s) is (are) dropped
|
// Determinate in which view the file(s) is (are) dropped
|
||||||
POINT p;
|
POINT p;
|
||||||
::GetCursorPos(&p);
|
::DragQueryPoint(hdrop, &p);
|
||||||
HWND hWnd = WindowFromPoint(p);
|
HWND hWin = ::ChildWindowFromPointEx(_pPublicInterface->getHSelf(), p, CWP_SKIPINVISIBLE);
|
||||||
::MapWindowPoints(NULL, hWnd, &p, 1);
|
|
||||||
HWND hWin = ::RealChildWindowFromPoint(hWnd, p);
|
|
||||||
if (!hWin) return;
|
if (!hWin) return;
|
||||||
|
|
||||||
if ((_subEditView.getHSelf() == hWin) || (_subDocTab.getHSelf() == hWin))
|
if ((_subEditView.getHSelf() == hWin) || (_subDocTab.getHSelf() == hWin))
|
||||||
|
|
|
@ -907,9 +907,8 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
||||||
|
|
||||||
POINT p;
|
POINT p;
|
||||||
::GetCursorPos(&p);
|
::GetCursorPos(&p);
|
||||||
HWND hWnd = WindowFromPoint(p);
|
::MapWindowPoints(NULL, _pPublicInterface->getHSelf(), &p, 1);
|
||||||
::MapWindowPoints(NULL, hWnd, &p, 1);
|
HWND hWin = ::ChildWindowFromPointEx(_pPublicInterface->getHSelf(), p, CWP_SKIPINVISIBLE);
|
||||||
HWND hWin = ::RealChildWindowFromPoint(hWnd, p);
|
|
||||||
const int tipMaxLen = 1024;
|
const int tipMaxLen = 1024;
|
||||||
static TCHAR docTip[tipMaxLen];
|
static TCHAR docTip[tipMaxLen];
|
||||||
docTip[0] = '\0';
|
docTip[0] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue