From ccee6ea29d88593a2f8bf8b8f5106399d30e4f40 Mon Sep 17 00:00:00 2001 From: Pavel Nedev Date: Fri, 8 May 2015 19:09:28 +0300 Subject: [PATCH] Refresh N++ window on Finder creation This makes Notepad++ window look clean when starting Find/Replace InFiles operation for the first time. --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 63f86134..0e81d406 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -1756,7 +1756,7 @@ void FindReplaceDlg::replaceAllInOpenedDocs() void FindReplaceDlg::findAllIn(InWhat op) { - bool doSetMarkingStruct = false; + bool justCreated = false; if (!_pFinder) { _pFinder = new Finder(); @@ -1800,11 +1800,13 @@ void FindReplaceDlg::findAllIn(InWhat op) _pFinder->_scintView.display(); _pFinder->display(); - doSetMarkingStruct = true; + ::SendMessage(_hParent, NPPM_DMMHIDE, 0, (LPARAM)_pFinder->getHSelf()); + ::UpdateWindow(_hParent); + justCreated = true; } _pFinder->setFinderStyle(); - if (doSetMarkingStruct) + if (justCreated) { // Send the address of _MarkingsStruct to the lexer char ptrword[sizeof(void*)*2+1];