diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-04 18:23:57 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-04 18:23:57 +0300 |
commit | 1cbdcde34f1d6fbcdb80317fa16c3dd8131f542f (patch) | |
tree | d438efaae235298c6498ad83bdfdc1cfbdb0cc82 /plugins/NewStory/src/history_menus.cpp | |
parent | e215b9e602c3a3e4dd9ee2b9f9d1bb6bad9e4060 (diff) |
for #3530 (Bookmarks)
Diffstat (limited to 'plugins/NewStory/src/history_menus.cpp')
-rw-r--r-- | plugins/NewStory/src/history_menus.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_menus.cpp b/plugins/NewStory/src/history_menus.cpp index 97ee756b9b..5da0cc1070 100644 --- a/plugins/NewStory/src/history_menus.cpp +++ b/plugins/NewStory/src/history_menus.cpp @@ -57,6 +57,10 @@ static INT_PTR NSMenuHelper(WPARAM wParam, LPARAM lParam) SendMessage(pData->hwnd, NSM_DOWNLOAD, 0, OFD_DOWNLOAD); break; + case 7: + pData->ToggleBookmark(); + break; + default: if (auto *pDlg = pData->pMsgDlg) { PostMessage(pDlg->GetHwnd(), WM_MOUSEACTIVATE, 0, 0); @@ -120,7 +124,7 @@ void InitMenus() mi.name.a = LPGEN("User history"); mi.position = 1000090000; mi.pszService = MS_HISTORY_SHOWCONTACTHISTORY; - mi.hIcolibItem = g_plugin.getIconHandle(ICO_NEWSTORY); + mi.hIcolibItem = g_plugin.getIconHandle(IDI_NEWSTORY); hmiHistory = Menu_AddContactMenuItem(&mi); CreateServiceFunction(mi.pszService, svcShowNewstory); @@ -171,6 +175,10 @@ void InitMenus() mi.name.a = LPGEN("Delete"); Menu_AddNewStoryMenuItem(&mi, 3); + mi.position = 200002; + mi.name.a = LPGEN("Toggle bookmark"); + Menu_AddNewStoryMenuItem(&mi, 7); + mi.position = 300000; mi.name.a = LPGEN("Select all"); Menu_AddNewStoryMenuItem(&mi, 4); |