summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-05-30 13:24:55 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-05-30 13:24:55 +0300
commitb84d7da2abb0632aa9214987102b783f63f8bc2e (patch)
tree280eadcd2cb4ffe0ffa37de5d0fbed24370f2404 /plugins/ExternalAPI
parent6573793a5488ed95e9acd6673a9f1335727802d4 (diff)
NewStory: context menu processing switched to GenMenu
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_NewStory.h17
1 files changed, 17 insertions, 0 deletions
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"