diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 14:42:48 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 14:42:48 +0000 |
commit | a1d3c240615f4f429b3b363a70f79a117abaf810 (patch) | |
tree | a34c0538c5c8376207c73568e25b56be3089dd6c /plugins | |
parent | 31990269da1ceef57e7296c76a255ee664f0b2e1 (diff) |
TabSRMM: added broadcastmessage service
git-svn-id: http://svn.miranda-ng.org/main/trunk@16034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 5a6ec5779f..34c49be384 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -201,6 +201,13 @@ static INT_PTR GetWindowAPI(WPARAM, LPARAM) return PLUGIN_MAKE_VERSION(0, 0, 0, 2);
}
+
+static INT_PTR BroadcastMessage(WPARAM, LPARAM lParam)
+{
+ M.BroadcastMessage((UINT)lParam, 0, 0);
+ return 0;
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// service function finds a message session
// wParam = contact handle for which we want the window handle
@@ -931,6 +938,8 @@ static void TSAPI InitAPI() CreateServiceFunction(MS_MSG_MOD_GETWINDOWFLAGS, GetMessageWindowFlags);
CreateServiceFunction(MS_MSG_MOD_MESSAGEDIALOGOPENED, MessageWindowOpened);
+ CreateServiceFunction("SRMsg/BroadcastMessage", BroadcastMessage);
+
SI_InitStatusIcons();
CB_InitCustomButtons();
|