summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/src/BasicHistory.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-01 21:07:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-01 21:07:34 +0000
commit66ddfd87a0e55b9534b8669392bb0cdee2e9fa3b (patch)
tree6075890e2ba60622069d5179f280d64b225c9be9 /plugins/BasicHistory/src/BasicHistory.cpp
parent1860018b201d995ed051c0affb72d5a1d09fa02e (diff)
SKINICONDESC initialization - end-II :)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/src/BasicHistory.cpp')
-rw-r--r--plugins/BasicHistory/src/BasicHistory.cpp28
1 files changed, 13 insertions, 15 deletions
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);
}