diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-08 12:08:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-08 12:08:57 +0000 |
commit | 91a382b14d293137fa3fd90d3f5d315491df9716 (patch) | |
tree | 59b474db7c960126a88e30519a931bb0469fda95 /include/m_message.h | |
parent | 5fdbe74ef5349341f2f513c92c920a57e9c9648b (diff) |
Srmm_* wrappers for services converted into regular functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@17274 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_message.h')
-rw-r--r-- | include/m_message.h | 48 |
1 files changed, 18 insertions, 30 deletions
diff --git a/include/m_message.h b/include/m_message.h index 8d4678daca..fe80b9c8e8 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -175,50 +175,38 @@ typedef struct { #define MBCF_RIGHTBUTTON 0x01 // if this flag is specified, the click was a right button - otherwize it was a left click
-typedef struct {
- int cbSize;
- POINT clickLocation; // click location, in screen coordinates
- char *szModule;
- DWORD dwId;
- int flags; // bitwize OR of MBCF_* flags above
-} StatusIconClickData;
+// adds an icon
-// wParam = (int)hLangpack
-// lParam = (StatusIconData *)&StatusIconData
-// #define MS_MSG_ADDICON "MessageAPI/AddIcon"
+EXTERN_C MIR_APP_DLL(int) Srmm_AddIcon(StatusIconData *sid, int _hLang = hLangpack);
-__forceinline INT_PTR Srmm_AddIcon(StatusIconData *sid)
-{ return CallService("MessageAPI/AddIcon", hLangpack, (LPARAM)sid);
-}
+// removes an icon
-// wParam = 0 (unused)
-// lParam = (StatusIconData *)&StatusIconData
-// only szModule and szId are used
-#define MS_MSG_REMOVEICON "MessageAPI/RemoveIcon"
+EXTERN_C MIR_APP_DLL(void) Srmm_RemoveIcon(const char *szProto, DWORD iconId);
-__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
// otherwise, only the flags field is valid
// if either hIcon, hIconDisabled or szTooltip is null, they will not be modified
-#define MS_MSG_MODIFYICON "MessageAPI/ModifyIcon"
-__forceinline void Srmm_ModifyIcon(MCONTACT hContact, StatusIconData *sid)
-{ CallService(MS_MSG_MODIFYICON, hContact, (LPARAM)sid);
-}
+EXTERN_C MIR_APP_DLL(int) Srmm_ModifyIcon(MCONTACT hContact, StatusIconData *sid);
// wParam = (HANDLE)hContact
// lParam = (int)zero-based index of a visible icon
// returns (StatusIconData*)icon description filled for the required contact
// don't free this memory.
-__forceinline StatusIconData* Srmm_GetNthIcon(MCONTACT hContact, int index)
-{ return (StatusIconData*)CallService("MessageAPI/GetNthIcon", hContact, index);
-}
+EXTERN_C MIR_APP_DLL(StatusIconData*) Srmm_GetNthIcon(MCONTACT hContact, int index);
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// status icons click notification
+
+struct StatusIconClickData
+{
+ int cbSize;
+ POINT clickLocation; // click location, in screen coordinates
+ char *szModule;
+ DWORD dwId;
+ int flags; // bitwize OR of MBCF_* flags above
+};
// wParam = (HANDLE)hContact;
// lParam = (StatusIconClickData *)&StatusIconClickData;
|