From d6c2d6cc9f379f805eae408f649761cd2fdbb5e0 Mon Sep 17 00:00:00 2001 From: antonyflash Date: Wed, 20 Jan 2016 20:55:27 +0700 Subject: [PATCH] Fix not localized caption of FindReplaceDlg Fixed not localized caption of FindReplaceDlg when it appear the first time. Closes #1395 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h index a023928c0..eff0ac69b 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h @@ -301,6 +301,10 @@ public : tie.mask = TCIF_TEXT; tie.pszText = (TCHAR *)name2change; TabCtrl_SetItem(_tab.getHSelf(), index, &tie); + + TCHAR label[MAX_PATH]; + _tab.getCurrentTitle(label, MAX_PATH); + ::SetWindowText(_hSelf, label); } void beginNewFilesSearch() {