mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
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:
parent
a7e00affb4
commit
ccee6ea29d
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user