diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-04-09 01:41:51 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-04-09 01:41:51 +0000 |
commit | a72ac14dbb1b8d53328621e5f5362ef61bcb27e6 (patch) | |
tree | dabb199c325983afc66fba0a9faaef9532915379 /Plugins/extraicons/CallbackExtraIcon.cpp | |
parent | 510d19974eab3364252df3ad1fa6965afe1c74f7 (diff) |
extraicons: changed to use callback prototypes with same signature as miranda hooks
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@157 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/extraicons/CallbackExtraIcon.cpp')
-rw-r--r-- | Plugins/extraicons/CallbackExtraIcon.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Plugins/extraicons/CallbackExtraIcon.cpp b/Plugins/extraicons/CallbackExtraIcon.cpp index 6674c78..81153d6 100644 --- a/Plugins/extraicons/CallbackExtraIcon.cpp +++ b/Plugins/extraicons/CallbackExtraIcon.cpp @@ -19,9 +19,11 @@ #include "commons.h"
-CallbackExtraIcon::CallbackExtraIcon(const char *name, void(*RebuildIcons)(), void(*ApplyIcon)(HANDLE hContact,
- int slot), const char *description, const char *descIcon) :
- ExtraIcon(name, description, descIcon), RebuildIcons(RebuildIcons), ApplyIcon(ApplyIcon), needToRebuild(true)
+CallbackExtraIcon::CallbackExtraIcon(const char *name, const char *description, const char *descIcon,
+ int(*RebuildIcons)(WPARAM wParam, LPARAM lParam), int(*ApplyIcon)(WPARAM wParam, LPARAM lParam), int(*OnClick)(
+ WPARAM wParam, LPARAM lParam)) :
+ ExtraIcon(name, description, descIcon, OnClick), RebuildIcons(RebuildIcons), ApplyIcon(ApplyIcon), needToRebuild(
+ true)
{
}
@@ -48,7 +50,7 @@ void CallbackExtraIcon::rebuildIcons() }
needToRebuild = false;
- RebuildIcons();
+ RebuildIcons(0, 0);
}
void CallbackExtraIcon::applyIcon(HANDLE hContact)
@@ -56,7 +58,7 @@ void CallbackExtraIcon::applyIcon(HANDLE hContact) if (!isEnabled() || hContact == NULL)
return;
- ApplyIcon(hContact, ConvertToClistSlot(slot));
+ ApplyIcon((WPARAM) hContact, (LPARAM) ConvertToClistSlot(slot));
}
int CallbackExtraIcon::setIcon(HANDLE hContact, void *icon)
|