From 6712ce9307350ef5c04f184b0cb80cfe75af77c5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Mar 2019 22:38:02 +0300 Subject: Srmm_ModifyIcon now changes only tooltip and/or icon, Srmm_SetIconFlags controls flags --- include/m_message.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/m_message.h b/include/m_message.h index b4c2f3ca3d..d348b39ffa 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -165,15 +165,16 @@ EXTERN_C MIR_APP_DLL(int) Srmm_AddIcon(StatusIconData *sid, HPLUGIN pPlugin); EXTERN_C MIR_APP_DLL(void) Srmm_RemoveIcon(const char *szProto, DWORD iconId); // 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 -EXTERN_C MIR_APP_DLL(int) Srmm_ModifyIcon(MCONTACT hContact, StatusIconData *sid); +// if either hIcon or pwszTooltip is null, they will not be modified +EXTERN_C MIR_APP_DLL(void) Srmm_ModifyIcon(MCONTACT hContact, const char *szModule, DWORD iconId, HICON hIcon, const wchar_t *pwszToolTip); -// wParam = (HANDLE)hContact -// lParam = (int)zero-based index of a visible icon -// returns (StatusIconData*)icon description filled for the required contact +// if hContact is null, flags are modified for all contacts +EXTERN_C MIR_APP_DLL(void) Srmm_SetIconFlags(MCONTACT hContact, const char *szModule, DWORD iconId, int flags); + +// idx is zero-based index of a visible icon +// returns (StatusIconData*)icon description filled for the required contact or NULL if there're no more icons // don't free this memory. -EXTERN_C MIR_APP_DLL(StatusIconData*) Srmm_GetNthIcon(MCONTACT hContact, int index); +EXTERN_C MIR_APP_DLL(StatusIconData*) Srmm_GetNthIcon(MCONTACT hContact, int idx); /////////////////////////////////////////////////////////////////////////////////////////////////////////////// // status icons click notification -- cgit v1.2.3