From 32dedc767dec565c576b78b786e7a95d76ac806e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Nov 2012 12:51:53 +0000 Subject: - added another helper, ExtraIcon_Clear, to remove an icon from slot; - added ability to pass IcoLib handles instead of icons' names git-svn-id: http://svn.miranda-ng.org/main/trunk@2371 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/extraicons/CallbackExtraIcon.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/modules/extraicons/CallbackExtraIcon.cpp') diff --git a/src/modules/extraicons/CallbackExtraIcon.cpp b/src/modules/extraicons/CallbackExtraIcon.cpp index 703628e73d..8c07bfd327 100644 --- a/src/modules/extraicons/CallbackExtraIcon.cpp +++ b/src/modules/extraicons/CallbackExtraIcon.cpp @@ -60,12 +60,17 @@ void CallbackExtraIcon::applyIcon(HANDLE hContact) ApplyIcon((WPARAM) hContact, 0); } -int CallbackExtraIcon::setIcon(int id, HANDLE hContact, void *icon) +int CallbackExtraIcon::setIcon(int id, HANDLE hContact, HANDLE icon) { if (!isEnabled() || hContact == NULL || id != this->id) return -1; - return ClistSetExtraIcon(hContact, (HANDLE) icon); + return ClistSetExtraIcon(hContact, icon); +} + +int CallbackExtraIcon::setIconByName(int id, HANDLE hContact, const char *icon) +{ + return -1; } void CallbackExtraIcon::storeIcon(HANDLE hContact, void *icon) -- cgit v1.2.3