From 66ddfd87a0e55b9534b8669392bb0cdee2e9fa3b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 1 Dec 2012 21:07:34 +0000 Subject: SKINICONDESC initialization - end-II :) git-svn-id: http://svn.miranda-ng.org/main/trunk@2599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/BasicHistory.cpp | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'plugins/BasicHistory/src') diff --git a/plugins/BasicHistory/src/BasicHistory.cpp b/plugins/BasicHistory/src/BasicHistory.cpp index 41e666436a..482641463e 100644 --- a/plugins/BasicHistory/src/BasicHistory.cpp +++ b/plugins/BasicHistory/src/BasicHistory.cpp @@ -196,60 +196,58 @@ void InitTaskMenuItems() void InitIcolib() { TCHAR stzFile[MAX_PATH]; + GetModuleFileName(hInst, stzFile, MAX_PATH); - SKINICONDESC sid = {0}; - sid.cbSize = sizeof(sid); + SKINICONDESC sid = { sizeof(sid) }; sid.cx = sid.cy = 16; sid.ptszDefaultFile = stzFile; - sid.ptszSection = LPGENT("History"); - sid.flags = SIDF_ALL_TCHAR; - - GetModuleFileName(hInst, stzFile, MAX_PATH); + sid.pszSection = LPGEN("History"); + sid.flags = SIDF_PATH_TCHAR; iconsNum = 3; hEventIcons = new HANDLE[iconsNum]; sid.pszName = "BasicHistory_in"; - sid.ptszDescription = LPGENT("Incoming message"); + sid.pszDescription = LPGEN("Incoming message"); sid.iDefaultIndex = -IDI_INM; hEventIcons[0] = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_out"; - sid.ptszDescription = LPGENT("Outgoing message"); + sid.pszDescription = LPGEN("Outgoing message"); sid.iDefaultIndex = -IDI_OUTM; hEventIcons[1] = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_status"; - sid.ptszDescription = LPGENT("Statuschange"); + sid.pszDescription = LPGEN("Statuschange"); sid.iDefaultIndex = -IDI_STATUS; hEventIcons[2] = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_show"; - sid.ptszDescription = LPGENT("Show Contacts"); + sid.pszDescription = LPGEN("Show Contacts"); sid.iDefaultIndex = -IDI_SHOW; hPlusIcon = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_hide"; - sid.ptszDescription = LPGENT("Hide Contacts"); + sid.pszDescription = LPGEN("Hide Contacts"); sid.iDefaultIndex = -IDI_HIDE; hMinusIcon = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_findnext"; - sid.ptszDescription = LPGENT("Find Next"); + sid.pszDescription = LPGEN("Find Next"); sid.iDefaultIndex = -IDI_FINDNEXT; hFindNextIcon = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_findprev"; - sid.ptszDescription = LPGENT("Find Previous"); + sid.pszDescription = LPGEN("Find Previous"); sid.iDefaultIndex = -IDI_FINDPREV; hFindPrevIcon = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_plusex"; - sid.ptszDescription = LPGENT("Plus in export"); + sid.pszDescription = LPGEN("Plus in export"); sid.iDefaultIndex = -IDI_PLUSEX; hPlusExIcon = Skin_AddIcon(&sid); sid.pszName = "BasicHistory_minusex"; - sid.ptszDescription = LPGENT("Minus in export"); + sid.pszDescription = LPGEN("Minus in export"); sid.iDefaultIndex = -IDI_MINUSEX; hMinusExIcon = Skin_AddIcon(&sid); } -- cgit v1.2.3