diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 9714dc8e9..156f71717 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -1437,6 +1437,19 @@ BOOL CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) _scintView.foldAll(fold_uncollapse); return TRUE; } + + case NPPM_INTERNAL_SCINTILLAFINFERCOPY : + { + _scintView.execute(SCI_COPY); + return TRUE; + } + + case NPPM_INTERNAL_SCINTILLAFINFERSELECTALL : + { + _scintView.execute(SCI_SELECTALL); + return TRUE; + } + default : { break; @@ -1454,6 +1467,9 @@ BOOL CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) vector tmp; tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERCOLLAPSE, "Collapse all")); tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERUNCOLLAPSE, "Uncollapse all")); + tmp.push_back(MenuItemUnit(0, "Separator")); + tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERCOPY, "Copy")); + tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERSELECTALL, "Select All")); scintillaContextmenu.create(_hSelf, tmp); diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h index 562e9e3fb..09756dc7f 100644 --- a/PowerEditor/src/resource.h +++ b/PowerEditor/src/resource.h @@ -285,7 +285,8 @@ #define NPPM_INTERNAL_ISFOCUSEDTAB (NOTEPADPLUS_USER_INTERNAL + 13) #define NPPM_INTERNAL_GETMENU (NOTEPADPLUS_USER_INTERNAL + 14) #define NPPM_INTERNAL_CLEARINDICATOR (NOTEPADPLUS_USER_INTERNAL + 15) - + #define NPPM_INTERNAL_SCINTILLAFINFERCOPY (NOTEPADPLUS_USER_INTERNAL + 16) + #define NPPM_INTERNAL_SCINTILLAFINFERSELECTALL (NOTEPADPLUS_USER_INTERNAL + 17) // See Notepad_plus_msgs.h //#define NOTEPADPLUS_USER (WM_USER + 1000) #define SCINTILLA_USER (WM_USER + 2000)