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/ExternalAPI | |
parent | 955e8047a7e312f93fb2b0611df017ac8acb59ab (diff) |
NewStory control messages made public
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r-- | plugins/ExternalAPI/m_NewStory.h | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/plugins/ExternalAPI/m_NewStory.h b/plugins/ExternalAPI/m_NewStory.h index ad6c7583a9..9350672f62 100644 --- a/plugins/ExternalAPI/m_NewStory.h +++ b/plugins/ExternalAPI/m_NewStory.h @@ -2,25 +2,43 @@ #include <vector> +enum +{ + NSM_FIRST = WM_USER + 100, + + // wParam = fist item + // lParam = iLast item + // result = number of total selected items + NSM_SELECTITEMS = NSM_FIRST, + + // wParam = (MCONTACT)hContact = database contact + // lParam = (MEVENT)hDbEvent = database event + NSM_ADDEVENT, + + // + NSM_SEEKTIME, + + // + NSM_SET_OPTIONS, // options were changed + + NSM_LAST +}; + ///////////////////////////////////////////////////////////////////////////////////////// // NS get current event -#define MS_NEWSTORY_GETCURRENT "NewStory/GetCurrent" - __forceinline MEVENT NS_GetCurrent(HANDLE hwnd) { - return (MEVENT)CallService(MS_NEWSTORY_GETCURRENT, WPARAM(hwnd), 0); + return (MEVENT)CallService("NewStory/GetCurrent", WPARAM(hwnd), 0); } ///////////////////////////////////////////////////////////////////////////////////////// // NS get selection -#define MS_NEWSTORY_GETSELECTION "NewStory/GetSelection" - __forceinline std::vector<MEVENT> NS_GetSelection(HANDLE hwnd) { std::vector<MEVENT> ret; - CallService(MS_NEWSTORY_GETSELECTION, WPARAM(hwnd), LPARAM(&ret)); + CallService("NewStory/GetSelection", WPARAM(hwnd), LPARAM(&ret)); return ret; } |