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/Nudge/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/Nudge/src')
-rw-r--r-- | plugins/Nudge/src/main.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index 580153ada9..7921fce8a9 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -366,19 +366,16 @@ void RegisterToDbeditorpp(void) void LoadIcons(void)
{
//Load icons
- SKINICONDESC sid = {0};
TCHAR szFilename[MAX_PATH];
GetModuleFileName(hInst,szFilename,MAX_PATH);
- sid.cbSize = sizeof(sid);
- sid.flags = SIDF_ALL_TCHAR;
- sid.ptszSection = LPGENT("Nudge");
+ SKINICONDESC sid = { sizeof(sid) };
+ sid.flags = SIDF_PATH_TCHAR;
+ sid.pszSection = LPGEN("Nudge");
sid.ptszDefaultFile = szFilename;
-
sid.pszName = "Nudge_Default";
- sid.ptszDescription = LPGENT("Nudge as Default");
+ sid.pszDescription = LPGEN("Nudge as Default");
sid.iDefaultIndex = -IDI_NUDGE;
- sid.hDefaultIcon = LoadIcon(hInst,MAKEINTRESOURCE(IDI_NUDGE));
g_hIcon = Skin_AddIcon(&sid);
}
@@ -750,15 +747,13 @@ void Nudge_AddAccount(PROTOACCOUNT *proto) GetModuleFileName(hInst,szFilename,MAX_PATH);
mir_sntprintf(iconDesc, SIZEOF(iconDesc), TranslateT("Nudge for %s"), proto->tszAccountName);
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(sid);
+ SKINICONDESC sid = { sizeof(sid) };
sid.flags = SIDF_ALL_TCHAR;
sid.ptszSection = LPGENT("Nudge");
sid.ptszDefaultFile = szFilename;
sid.pszName = iconName;
sid.ptszDescription = iconDesc;
sid.iDefaultIndex = -IDI_NUDGE;
- sid.hDefaultIcon = LoadIcon(hInst,MAKEINTRESOURCE(IDI_NUDGE));
newNudge->item.hIcoLibItem = Skin_AddIcon(&sid);
//Add contact menu entry
|