diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-03 20:16:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-03 20:16:42 +0000 |
commit | f12d8b56f2894e94491bd7424d69f595d285f01f (patch) | |
tree | 3f54d66c8c248bb456da1cb0c5cc31661f144e5f /plugins/WhenWasIt/src/icons.cpp | |
parent | 1b1a54dc156bec90be3ddc337c17b4e67179d4ea (diff) |
no more MS_CLIST_EXTRA_ADD_ICON in the application code
git-svn-id: http://svn.miranda-ng.org/main/trunk@2175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhenWasIt/src/icons.cpp')
-rw-r--r-- | plugins/WhenWasIt/src/icons.cpp | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/plugins/WhenWasIt/src/icons.cpp b/plugins/WhenWasIt/src/icons.cpp index ffa5e1e9ee..6ac1627e97 100644 --- a/plugins/WhenWasIt/src/icons.cpp +++ b/plugins/WhenWasIt/src/icons.cpp @@ -67,9 +67,7 @@ int LoadIcons() AddIcons();
GetIcons();
- if (ServiceExists(MS_EXTRAICON_REGISTER))
- hWWIExtraIcons = ExtraIcon_Register("WhenWasIt", Translate("WhenWasIt birthday reminder"), "MenuCheck", OnExtraIconListRebuild, OnExtraImageApply);
-
+ hWWIExtraIcons = ExtraIcon_Register("WhenWasIt", Translate("WhenWasIt birthday reminder"), "MenuCheck");
return 0;
}
@@ -123,8 +121,7 @@ void FreeIcon(HICON &icon) void FreeIcons()
{
static int bFreed = 0;
- if (!bFreed)
- {
+ if (!bFreed) {
FreeIcon(hiCheckMenu);
FreeIcon(hiListMenu);
FreeIcon(hiAddBirthdayContact);
@@ -133,11 +130,9 @@ void FreeIcons() FreeIcon(hiImportBirthdays);
FreeIcon(hiExportBirthdays);
- int i;
- for (i = 0; i < cDTB; i++)
- {
+ for (int i = 0; i < cDTB; i++)
FreeIcon(hiDTB[i]);
- }
+
FreeIcon(hiDTBMore);
}
bFreed = 1; //only free them once (ours).
@@ -183,21 +178,3 @@ HANDLE GetClistIcon(int dtb) return hClistImages[dtb];
}
-
-HANDLE RebuildCListIcon(HICON icon)
-{
- INT_PTR tmp = CallService(MS_CLIST_EXTRA_ADD_ICON, (WPARAM) icon, 0);
- if (tmp != CALLSERVICE_NOTFOUND)
- return (HANDLE) tmp;
-
- return (HANDLE) -1;
-}
-
-int RebuildAdvIconList()
-{
- for (int i = 0; i < cDTB; i++)
- hClistImages[i] = RebuildCListIcon(hiDTB[i]);
-
- hClistImages[cDTB] = RebuildCListIcon(hiDTBMore);
- return 0;
-}
|