diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index c215b021..74575469 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -1496,6 +1496,10 @@ bool Notepad_plus::replaceInFiles() updateOnCount += filesPerPercent; progress.SetPercent((i * 100) / filesCount, fileNames.at(i).c_str()); } + else + { + progress.SetInfo(fileNames.at(i).c_str()); + } } progress.Close(); @@ -1578,6 +1582,10 @@ bool Notepad_plus::findInFiles() updateOnCount += filesPerPercent; progress.SetPercent((i * 100) / filesCount, fileNames.at(i).c_str()); } + else + { + progress.SetInfo(fileNames.at(i).c_str()); + } } progress.Close(); diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h index 0392e879..2c51f757 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h @@ -413,6 +413,11 @@ public: HWND Open(HWND hOwner = NULL, const TCHAR* header = NULL); bool IsCancelled() const; void SetPercent(unsigned percent, const TCHAR *fileName) const; + void SetInfo(const TCHAR *info) const { + if (_hwnd) + ::SendMessage(_hPText, WM_SETTEXT, 0, (LPARAM)info); + }; + void Close(); private: