From 8e6a28579846d35bc36966dfb50e2eb7f662471a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Apr 2018 22:13:32 +0300 Subject: CLIST_INTERFACE::pfnReloadExtraIcons => ExtraIcon_Reload() CLIST_INTERFACE::pfnSetAllExtraIcons => ExtraIcon_SetAll() --- include/m_clistint.h | 6 ------ include/m_extraicons.h | 12 +++++++++++- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/m_clistint.h b/include/m_clistint.h index a9170b64e5..72fc4ab601 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -469,12 +469,6 @@ struct CLIST_INTERFACE VOID (CALLBACK *pfnTrayCycleTimerProc)(HWND hwnd, UINT message, UINT_PTR idEvent, DWORD dwTime); - /************************************************************************************* - * version 7 additions (0.11.0.x) - extra images - *************************************************************************************/ - void (*pfnReloadExtraIcons)(void); - void (*pfnSetAllExtraIcons)(MCONTACT hContact); - /************************************************************************************* * Miranda NG additions *************************************************************************************/ diff --git a/include/m_extraicons.h b/include/m_extraicons.h index 8611a02e6c..11ce000a32 100644 --- a/include/m_extraicons.h +++ b/include/m_extraicons.h @@ -123,9 +123,19 @@ EXTERN_C MIR_APP_DLL(int) ExtraIcon_SetIconByName(HANDLE hExtraIcon, MCONTACT hC EXTERN_C MIR_APP_DLL(int) ExtraIcon_Clear(HANDLE hExtraIcon, MCONTACT hContact); ///////////////////////////////////////////////////////////////////////////////////////// -// Adding icon to extra image list. +// Adds an icon to extra image list. // Used for EXTRAICON_TYPE_CALLBACK extra icons EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_AddIcon(HICON hIcon); +///////////////////////////////////////////////////////////////////////////////////////// +// Reloads all extra icons from their sources + +EXTERN_C MIR_APP_DLL(void) ExtraIcon_Reload(); + +///////////////////////////////////////////////////////////////////////////////////////// +// Sets all extra icons for the specified contact or for all contacts by default + +EXTERN_C MIR_APP_DLL(void) ExtraIcon_SetAll(MCONTACT hContact = 0); + #endif // __M_EXTRAICONS_H__ -- cgit v1.2.3