diff options
Diffstat (limited to 'include/m_extraicons.h')
-rw-r--r-- | include/m_extraicons.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/m_extraicons.h b/include/m_extraicons.h index e07384cedb..fb5b3af3d0 100644 --- a/include/m_extraicons.h +++ b/include/m_extraicons.h @@ -32,13 +32,13 @@ Boston, MA 02111-1307, USA. #define EMPTY_EXTRA_ICON 0xFFFF
-//called with wparam=hContact
+// called with wparam=hContact
#define ME_CLIST_EXTRA_IMAGE_APPLY "CListFrames/OnExtraImageApply"
-//called with wparam=hContact lparam=extra
+// called with wparam=hContact lparam=extra
#define ME_CLIST_EXTRA_CLICK "CListFrames/OnExtraClick"
-//called with wparam=lparam=0
+// called with wparam=lparam=0
#define ME_CLIST_EXTRA_LIST_REBUILD "CListFrames/OnExtraListRebuild"
/*
@@ -105,17 +105,24 @@ EXTERN_C MIR_APP_DLL(void) KillModuleExtraIcons(int hLangpack); #pragma warning(disable:4505)
+/////////////////////////////////////////////////////////////////////////////////////////
+
+#define EIF_DISABLED_BY_DEFAULT 0x0001
+
EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterCallback(const char *name, const char *description, const char *descIcon,
- MIRANDAHOOK RebuildIcons, MIRANDAHOOK ApplyIcon, MIRANDAHOOKPARAM OnClick = NULL, LPARAM onClickParam = 0, int = hLangpack);
+ MIRANDAHOOK RebuildIcons, MIRANDAHOOK ApplyIcon, MIRANDAHOOKPARAM OnClick = NULL, LPARAM onClickParam = 0, int flags = 0, int = hLangpack);
EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterIcolib(const char *name, const char *description, const char *descIcon = NULL,
- MIRANDAHOOKPARAM OnClick = NULL, LPARAM onClickParam = 0, int = hLangpack);
+ MIRANDAHOOKPARAM OnClick = NULL, LPARAM onClickParam = 0, int flags = 0, int = hLangpack);
+
+/////////////////////////////////////////////////////////////////////////////////////////
EXTERN_C MIR_APP_DLL(int) ExtraIcon_SetIcon(HANDLE hExtraIcon, MCONTACT hContact, HANDLE hImage);
EXTERN_C MIR_APP_DLL(int) ExtraIcon_SetIconByName(HANDLE hExtraIcon, MCONTACT hContact, const char *icoName);
EXTERN_C MIR_APP_DLL(int) ExtraIcon_Clear(HANDLE hExtraIcon, MCONTACT hContact);
+/////////////////////////////////////////////////////////////////////////////////////////
// Adding icon to extra image list.
// Used for EXTRAICON_TYPE_CALLBACK extra icons
|