mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
A comprehensive fix for background clipping of dock panels
The (very detailed) explanation/information of fix: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2937#issuecomment-992086848 Fix #2202, fix #2937, fix #5980, fix #8980, fix #9905, fix #10091, close #10910
This commit is contained in:
parent
3d5aa49cdd
commit
ee884f87bb
@ -1759,50 +1759,10 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_ACTIVATE:
|
case WM_SYNCPAINT:
|
||||||
{
|
{
|
||||||
if (wParam != WA_INACTIVE && _pEditView && _pNonEditView)
|
RedrawWindow(hwnd, NULL, NULL, RDW_INVALIDATE | RDW_ERASE | RDW_ALLCHILDREN);
|
||||||
{
|
break;
|
||||||
_pEditView->getFocus();
|
|
||||||
auto x = _pEditView->execute(SCI_GETXOFFSET);
|
|
||||||
_pEditView->execute(SCI_SETXOFFSET, x);
|
|
||||||
x = _pNonEditView->execute(SCI_GETXOFFSET);
|
|
||||||
_pNonEditView->execute(SCI_SETXOFFSET, x);
|
|
||||||
|
|
||||||
if (_pFileBrowser && _pFileBrowser->isVisible())
|
|
||||||
{
|
|
||||||
_pFileBrowser->redraw(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_pFuncList && _pFuncList->isVisible())
|
|
||||||
{
|
|
||||||
_pFuncList->redraw(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_pClipboardHistoryPanel && _pClipboardHistoryPanel->isVisible())
|
|
||||||
{
|
|
||||||
_pClipboardHistoryPanel->redraw(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_pDocMap && _pDocMap->isVisible())
|
|
||||||
{
|
|
||||||
_pDocMap->redraw(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_pProjectPanel_1 && _pProjectPanel_1->isVisible())
|
|
||||||
{
|
|
||||||
_pProjectPanel_1->redraw(true);
|
|
||||||
}
|
|
||||||
if (_pProjectPanel_2 && _pProjectPanel_2->isVisible())
|
|
||||||
{
|
|
||||||
_pProjectPanel_2->redraw(true);
|
|
||||||
}
|
|
||||||
if (_pProjectPanel_3 && _pProjectPanel_3->isVisible())
|
|
||||||
{
|
|
||||||
_pProjectPanel_3->redraw(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_DROPFILES:
|
case WM_DROPFILES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user