diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-11-24 14:08:08 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-11-24 14:08:08 +0000 |
commit | 669813f9a07f0a8936a19f124aa6b5ae96840f8a (patch) | |
tree | dbb82dcf72291328be77ff0d46c34a90ea1c2a37 /plugins/NoHistory/icons.cpp | |
parent | 67ea1476b00f5069633d585342d5b707d2bcb6a7 (diff) |
NoHistory and NotesAndReminders added to full slns
git-svn-id: http://svn.miranda-ng.org/main/trunk@2462 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NoHistory/icons.cpp')
-rw-r--r-- | plugins/NoHistory/icons.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/NoHistory/icons.cpp b/plugins/NoHistory/icons.cpp deleted file mode 100644 index 6bfff6a424..0000000000 --- a/plugins/NoHistory/icons.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include "common.h"
-#include "icons.h"
-#include "resource.h"
-
-HICON hIconRemove, hIconKeep, hIconClear;
-HANDLE hIcoLibIconsChanged = 0;
-
-int ReloadIcons(WPARAM wParam, LPARAM lParam) {
- hIconRemove = Skin_GetIcon(MODULE "_remove");
- hIconKeep = Skin_GetIcon(MODULE "_keep");
- hIconClear = Skin_GetIcon(MODULE "_clear");
-
- return 0;
-}
-
-void InitIcons() {
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
-
- sid.ptszSection = _T(MODULE);
- sid.flags = SIDF_ALL_TCHAR;
-
- TCHAR path[MAX_PATH];
- GetModuleFileName(hInst,path,MAX_PATH);
-
-#define AddIcon(x,y,z) \
- sid.ptszDescription = x; \
- sid.pszName = y; \
- sid.ptszDefaultFile = path; \
- sid.hDefaultIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(z), IMAGE_ICON, 0, 0, 0); \
- Skin_AddIcon(&sid); \
- sid.iDefaultIndex++;
-
- AddIcon(LPGENT("Disable"), MODULE "_remove", IDI_HREMOVE);
- AddIcon(LPGENT("Enable"), MODULE "_keep", IDI_HKEEP);
- AddIcon(LPGENT("Clear"), MODULE "_clear", IDI_HCLEAR);
-
-#undef AddIcon
-
- ReloadIcons(0, 0);
-
- hIcoLibIconsChanged = HookEvent(ME_SKIN2_ICONSCHANGED, ReloadIcons);
-
-}
-
-void DeinitIcons() {
- if(hIcoLibIconsChanged)
- UnhookEvent(hIcoLibIconsChanged);
-}
|