diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-11 07:08:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-11 07:08:40 +0000 |
commit | bd820972afe24409e6b570adbc45f5dc0fa2385d (patch) | |
tree | e600bf39409083219c7928e10ec2b61002529641 /include | |
parent | 6029165c364f93a84ab7e98ef71d3a711b0f588c (diff) |
SRMM icons to be unloaded automatically
git-svn-id: http://svn.miranda-ng.org/main/trunk@4418 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/m_message.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/m_message.h b/include/m_message.h index c12b0150f4..3779eafe0b 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -24,6 +24,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_MESSAGE_H__
#define M_MESSAGE_H__ 1
+#include <m_core.h>
+
+extern int hLangpack;
+
//brings up the send message dialog for a contact
//wParam = (WPARAM)(HANDLE)hContact
//lParam = (LPARAM)(char*)szText
@@ -151,15 +155,23 @@ typedef struct { int flags; // bitwize OR of MBCF_* flags above
} StatusIconClickData;
-// wParam = 0 (unused)
+// wParam = (int)hLangpack
// lParam = (StatusIconData *)&StatusIconData
-#define MS_MSG_ADDICON "MessageAPI/AddIcon"
+// #define MS_MSG_ADDICON "MessageAPI/AddIcon"
+
+__forceinline INT_PTR Srmm_AddIcon(StatusIconData *sid)
+{ return CallService("MessageAPI/AddIcon", hLangpack, (LPARAM)&sid);
+}
// wParam = 0 (unused)
// lParam = (StatusIconData *)&StatusIconData
// only szModule and szId are used
#define MS_MSG_REMOVEICON "MessageAPI/RemoveIcon"
+__forceinline void Srmm_RemoveIcon(StatusIconData *sid)
+{ CallService(MS_MSG_REMOVEICON, 0, (LPARAM)&sid);
+}
+
// wParam = (HANDLE)hContact
// lParam = (StatusIconData *)&StatusIconData
// if hContact is null, icon is modified for all contacts
|