From 255b8133ea30d765428eb8188d75db91558bcd27 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Nov 2023 19:04:55 +0300 Subject: NewStory control messages made public --- plugins/ExternalAPI/m_NewStory.h | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'plugins/ExternalAPI') 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 +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 NS_GetSelection(HANDLE hwnd) { std::vector ret; - CallService(MS_NEWSTORY_GETSELECTION, WPARAM(hwnd), LPARAM(&ret)); + CallService("NewStory/GetSelection", WPARAM(hwnd), LPARAM(&ret)); return ret; } -- cgit v1.2.3