From ed0e4c1d9be5e715a5cfbb8968761b3990f17fe5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 1 Dec 2012 14:07:01 +0000 Subject: macro removed git-svn-id: http://svn.miranda-ng.org/main/trunk@2593 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NoHistory/src/icons.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'plugins/NoHistory/src/icons.cpp') diff --git a/plugins/NoHistory/src/icons.cpp b/plugins/NoHistory/src/icons.cpp index bb13603c41..f3f606fb45 100644 --- a/plugins/NoHistory/src/icons.cpp +++ b/plugins/NoHistory/src/icons.cpp @@ -20,22 +20,24 @@ void InitIcons() sid.pszSection = MODULE; sid.flags = SIDF_PATH_TCHAR; - TCHAR path[MAX_PATH]; + TCHAR path[MAX_PATH]; GetModuleFileName(hInst,path,MAX_PATH); sid.ptszDefaultFile = path; -#define AddIcon(x,y,z) \ - sid.pszDescription = x; \ - sid.pszName = y; \ - sid.iDefaultIndex = -z; \ - Skin_AddIcon(&sid); \ - sid.iDefaultIndex++; + sid.pszDescription = LPGEN("Disable"); + sid.pszName = MODULE "_remove"; + sid.iDefaultIndex = -IDI_HREMOVE; + Skin_AddIcon(&sid); - AddIcon( LPGEN("Disable"), MODULE "_remove", IDI_HREMOVE); - AddIcon( LPGEN("Enable"), MODULE "_keep", IDI_HKEEP); - AddIcon( LPGEN("Clear"), MODULE "_clear", IDI_HCLEAR); + sid.pszDescription = LPGEN("Enable"); + sid.pszName = MODULE "_keep"; + sid.iDefaultIndex = -IDI_HKEEP; + Skin_AddIcon(&sid); -#undef AddIcon + sid.pszDescription = LPGEN("Clear"); + sid.pszName = MODULE "_clear"; + sid.iDefaultIndex = -IDI_HCLEAR; + Skin_AddIcon(&sid); ReloadIcons(0, 0); -- cgit v1.2.3