Fix "Match Whole Word" option being enabled in RegEx Search

Fix #9766
This commit is contained in:
Don HO 2021-05-16 03:23:10 +02:00
parent 0faa139234
commit 6c19e88242
1 changed files with 1 additions and 4 deletions

View File

@ -2741,10 +2741,7 @@ void FindReplaceDlg::enableFindDlgItem(int dlgItemID, bool isEnable /* = true*/)
HWND h = ::GetDlgItem(_hSelf, dlgItemID); HWND h = ::GetDlgItem(_hSelf, dlgItemID);
if (!h) return; if (!h) return;
if (::IsWindowVisible(h))
{
::EnableWindow(h, isEnable ? TRUE : FALSE); ::EnableWindow(h, isEnable ? TRUE : FALSE);
}
// remember the real state of this control being enabled/disabled // remember the real state of this control being enabled/disabled
_controlEnableMap[dlgItemID] = isEnable; _controlEnableMap[dlgItemID] = isEnable;