From b84d7da2abb0632aa9214987102b783f63f8bc2e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 May 2023 13:24:55 +0300 Subject: NewStory: context menu processing switched to GenMenu --- plugins/ExternalAPI/m_NewStory.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plugins/ExternalAPI/m_NewStory.h (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_NewStory.h b/plugins/ExternalAPI/m_NewStory.h new file mode 100644 index 0000000000..8f8baff12c --- /dev/null +++ b/plugins/ExternalAPI/m_NewStory.h @@ -0,0 +1,17 @@ +#pragma once + +struct NSMenuExecParam +{ + char *szServiceName; + int iParam; +}; + +__forceinline HGENMENU Menu_AddNewStoryMenuItem(TMO_MenuItem *pmi, int param) +{ + return (HGENMENU)CallService("NSMenu/AddService", (WPARAM)pmi, param); +} + +// event for changing NewStory menu items +// wparam = (MCONTACT)hContact - contact id +// lparam = (DB::EventInfo*)dbei - event +#define ME_NS_PREBUILDMENU "NewStory/PreBuildMenu" -- cgit v1.2.3