diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-24 19:04:55 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-24 19:27:56 +0300 |
commit | 255b8133ea30d765428eb8188d75db91558bcd27 (patch) | |
tree | fea7c0557d007a15462b45d77c81dd707e6f4c46 /plugins/NewStory | |
parent | 955e8047a7e312f93fb2b0611df017ac8acb59ab (diff) |
NewStory control messages made public
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 4 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.h | 18 | ||||
-rw-r--r-- | plugins/NewStory/src/history_svc.cpp | 4 |
3 files changed, 6 insertions, 20 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index a208d62312..c698e436c4 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -919,6 +919,10 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM } return TRUE; + case NSM_ADDEVENT: + data->AddEvent(wParam, lParam, 1); + break; + case NSM_SET_OPTIONS: data->bSortAscending = g_plugin.bSortAscending; data->scrollTopPixel = 0; diff --git a/plugins/NewStory/src/history_control.h b/plugins/NewStory/src/history_control.h index e11b74db5d..2cbe46309c 100644 --- a/plugins/NewStory/src/history_control.h +++ b/plugins/NewStory/src/history_control.h @@ -3,24 +3,6 @@ #define NEWSTORYLIST_CLASS "NewstoryList" -enum -{ - NSM_FIRST = WM_USER + 100, - - // wParam = fist item - // lParam = iLast item - // result = number of total selected items - NSM_SELECTITEMS = NSM_FIRST, - - // - NSM_SEEKTIME, - - // - NSM_SET_OPTIONS, // options were changed - - NSM_LAST -}; - struct NewstoryListData : public MZeroedObject { NewstoryListData(HWND); diff --git a/plugins/NewStory/src/history_svc.cpp b/plugins/NewStory/src/history_svc.cpp index 0ba3cbf426..9043ed95fe 100644 --- a/plugins/NewStory/src/history_svc.cpp +++ b/plugins/NewStory/src/history_svc.cpp @@ -51,6 +51,6 @@ static INT_PTR SvcGetSelection(WPARAM wParam, LPARAM lParam) void InitServices() { - CreateServiceFunction(MS_NEWSTORY_GETCURRENT, &SvcGetCurrent); - CreateServiceFunction(MS_NEWSTORY_GETSELECTION, &SvcGetSelection); + CreateServiceFunction("NewStory/GetCurrent", &SvcGetCurrent); + CreateServiceFunction("NewStory/GetSelection", &SvcGetSelection); } |