[ENHANCEMENT) (Author: Pavel Nedev) Enhance displaying of searching files on the progress bar while finding files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1347 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
f224c673bf
commit
aa7461f062
@ -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();
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user