Refresh N++ window on Finder creation

This makes Notepad++ window look clean when starting Find/Replace InFiles operation for the first time.
This commit is contained in:
Pavel Nedev 2015-05-08 19:09:28 +03:00
parent a7e00affb4
commit ccee6ea29d

View File

@ -1756,7 +1756,7 @@ void FindReplaceDlg::replaceAllInOpenedDocs()
void FindReplaceDlg::findAllIn(InWhat op) void FindReplaceDlg::findAllIn(InWhat op)
{ {
bool doSetMarkingStruct = false; bool justCreated = false;
if (!_pFinder) if (!_pFinder)
{ {
_pFinder = new Finder(); _pFinder = new Finder();
@ -1800,11 +1800,13 @@ void FindReplaceDlg::findAllIn(InWhat op)
_pFinder->_scintView.display(); _pFinder->_scintView.display();
_pFinder->display(); _pFinder->display();
doSetMarkingStruct = true; ::SendMessage(_hParent, NPPM_DMMHIDE, 0, (LPARAM)_pFinder->getHSelf());
::UpdateWindow(_hParent);
justCreated = true;
} }
_pFinder->setFinderStyle(); _pFinder->setFinderStyle();
if (doSetMarkingStruct) if (justCreated)
{ {
// Send the address of _MarkingsStruct to the lexer // Send the address of _MarkingsStruct to the lexer
char ptrword[sizeof(void*)*2+1]; char ptrword[sizeof(void*)*2+1];