diff options
author | George Hazan <george.hazan@gmail.com> | 2012-12-01 13:25:11 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-12-01 13:25:11 +0000 |
commit | 854959cbc0a1bad2c086214be4d1a829b17a61f3 (patch) | |
tree | ee3de50f4b4e57f54ae20d139f97fa469ff90d34 /plugins/MyDetails/src | |
parent | 73ddc73d92675399e4619758d4b0881418de0a6d (diff) |
icolib: icon creation quirks
git-svn-id: http://svn.miranda-ng.org/main/trunk@2588 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src')
-rw-r--r-- | plugins/MyDetails/src/mydetails.cpp | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp index 52b8fb2666..5d8ab4836c 100644 --- a/plugins/MyDetails/src/mydetails.cpp +++ b/plugins/MyDetails/src/mydetails.cpp @@ -199,34 +199,33 @@ static int MainInit(WPARAM wparam,LPARAM lparam) InitFrames();
+ TCHAR tszPath[MAX_PATH];
+ GetModuleFileName(hInst, tszPath, SIZEOF(tszPath));
+
+ SKINICONDESC sid = { sizeof(sid) };
+ sid.flags = SIDF_PATH_TCHAR;
+ sid.ptszDefaultFile = tszPath;
+
if ( Skin_GetIcon("LISTENING_TO_ICON") == NULL) {
- SKINICONDESC sid = { sizeof(SKINICONDESC) };
- sid.flags = SIDF_TCHAR;
- sid.ptszSection = LPGENT("Contact List");
- sid.ptszDescription = LPGENT("Listening to");
+ sid.pszSection = LPGEN("Contact List");
+ sid.pszDescription = LPGEN("Listening to");
sid.pszName = "LISTENING_TO_ICON";
- sid.hDefaultIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_LISTENINGTO));
- Skin_AddIcon(&sid);
- }
- {
- SKINICONDESC sid = { sizeof(SKINICONDESC) };
- sid.flags = SIDF_TCHAR;
- sid.ptszSection = LPGENT("My Details");
- sid.ptszDescription = LPGENT("Previous protocol");
- sid.pszName = "MYDETAILS_PREV_PROTOCOL";
- sid.hDefaultIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_LEFT_ARROW));
- Skin_AddIcon(&sid);
- }
- {
- SKINICONDESC sid = { sizeof(SKINICONDESC) };
- sid.flags = SIDF_TCHAR;
- sid.ptszSection = LPGENT("My Details");
- sid.ptszDescription = LPGENT("Next protocol");
- sid.pszName = "MYDETAILS_NEXT_PROTOCOL";
- sid.hDefaultIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_RIGHT_ARROW));
+ sid.iDefaultIndex = -IDI_LISTENINGTO;
Skin_AddIcon(&sid);
}
+ sid.pszSection = LPGEN("My Details");
+ sid.pszDescription = LPGEN("Previous protocol");
+ sid.pszName = "MYDETAILS_PREV_PROTOCOL";
+ sid.iDefaultIndex = -IDI_LEFT_ARROW;
+ Skin_AddIcon(&sid);
+
+ sid.pszSection = LPGEN("My Details");
+ sid.pszDescription = LPGEN("Next protocol");
+ sid.pszName = "MYDETAILS_NEXT_PROTOCOL";
+ sid.iDefaultIndex = -IDI_RIGHT_ARROW;
+ Skin_AddIcon(&sid);
+
return 0;
}
|