diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 48d10674c..26f62fd65 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -534,6 +534,9 @@ LRESULT Notepad_plus::init(HWND hwnd) _pluginsAdminDlg.setPluginsManager(&_pluginsManager); _pluginsManager.setMenu(_mainMenuHandle, NULL, enablePluginAdmin); + //Search menu + //disable "Search Results Window" under Search Menu + ::EnableMenuItem(_mainMenuHandle, IDM_FOCUS_ON_FOUND_RESULTS, MF_DISABLED | MF_GRAYED | MF_BYCOMMAND); //Main menu is loaded, now load context menu items nppParam.getContextMenuFromXmlTree(_mainMenuHandle, _pluginsManager.getMenuHandle()); diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp index eef79dc16..5bb843688 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp @@ -2584,6 +2584,9 @@ void FindReplaceDlg::findAllIn(InWhat op) char ptrword[sizeof(void*)*2+1]; sprintf(ptrword, "%p", &_pFinder->_markingsStruct); _pFinder->_scintView.execute(SCI_SETPROPERTY, reinterpret_cast("@MarkingsStruct"), reinterpret_cast(ptrword)); + + //enable "Search Results Window" under Search Menu + ::EnableMenuItem(::GetMenu(_hParent), IDM_FOCUS_ON_FOUND_RESULTS, MF_ENABLED | MF_BYCOMMAND); } ::SendMessage(_pFinder->getHSelf(), WM_SIZE, 0, 0);