Browse Source

Fix Find Replace size is not remembered through the sessions issue

Fix #15294
pull/15303/head
Don Ho 5 months ago
parent
commit
e6a1735236
  1. 2
      PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp

2
PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp

@ -347,7 +347,7 @@ void FindReplaceDlg::create(int dialogID, bool isRTL, bool msgDestParent, bool t
{
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, 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)
::SendMessageW(_hSelf, DM_REPOSITION, 0, 0);

Loading…
Cancel
Save