mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-29 08:44:40 +02:00
Fix Find Replace size is not remembered through the sessions issue
Fix #15294
This commit is contained in:
parent
fa2fce2b41
commit
e6a1735236
@ -347,7 +347,7 @@ void FindReplaceDlg::create(int dialogID, bool isRTL, bool msgDestParent, bool t
|
|||||||
{
|
{
|
||||||
RECT rc = getViewablePositionRect(nppGUI._findWindowPos);
|
RECT rc = getViewablePositionRect(nppGUI._findWindowPos);
|
||||||
::SetWindowPos(_hSelf, HWND_TOP, rc.left, rc.top, 0, 0, SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOACTIVATE);
|
::SetWindowPos(_hSelf, HWND_TOP, rc.left, rc.top, 0, 0, SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOACTIVATE);
|
||||||
::SetWindowPos(_hSelf, HWND_TOP, 0, 0, _rc.right - _rc.left, _rc.bottom - _rc.top, swpFlags | SWP_NOMOVE);
|
::SetWindowPos(_hSelf, HWND_TOP, 0, 0, rc.right - rc.left, _rc.bottom - _rc.top, swpFlags | SWP_NOMOVE);
|
||||||
|
|
||||||
if ((swpFlags & SWP_SHOWWINDOW) == SWP_SHOWWINDOW)
|
if ((swpFlags & SWP_SHOWWINDOW) == SWP_SHOWWINDOW)
|
||||||
::SendMessageW(_hSelf, DM_REPOSITION, 0, 0);
|
::SendMessageW(_hSelf, DM_REPOSITION, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user