diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-09-14 19:25:29 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-09-14 19:25:29 +0000 |
commit | 98a324d2fb4babc09e94a10fef819f3409477eb2 (patch) | |
tree | 3db8dabae7922ae053d4748ba733d361d18f56df /plugins/UserInfoEx/src/mir_icolib.cpp | |
parent | 25f87650dab37f5a7380ae2121c7529cb3ac801a (diff) |
UserInfoEx: fix #685
git-svn-id: http://svn.miranda-ng.org/main/trunk@15353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/mir_icolib.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/mir_icolib.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/mir_icolib.cpp b/plugins/UserInfoEx/src/mir_icolib.cpp index 448e67b7ec..587da1a03e 100644 --- a/plugins/UserInfoEx/src/mir_icolib.cpp +++ b/plugins/UserInfoEx/src/mir_icolib.cpp @@ -314,20 +314,24 @@ HICON IcoLib_RegisterIcon(LPSTR szIconID, LPSTR szDescription, LPSTR szSection, *
* @return nothing
**/
-static IconItem main = { LPGEN("Main"), ICO_COMMON_MAIN, IDI_MAIN };
+static IconItem common[] =
+{
+ { LPGEN("Main"), ICO_COMMON_MAIN, IDI_MAIN },
+ { LPGEN("Default"), ICO_COMMON_DEFAULT, IDI_DEFAULT }
+};
void IcoLib_LoadModule()
{
- Icon_Register(ghInst, SECT_COMMON, &main, 1);
+ Icon_Register(ghInst, SECT_COMMON, common, 2);
LPTSTR szDefaultFile = IcoLib_GetDefaultIconFileName();
IcoLib_CheckIconPackVersion(szDefaultFile);
// load default icon if required
- ghDefIcon = (HICON)LoadImage(ghInst, MAKEINTRESOURCE(IDI_DEFAULT), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0);
+ ghDefIcon = (HICON)IcoLib_GetIcon(ICO_COMMON_DEFAULT, false);
for (int i = 0; i < _countof(icoDesc); i++)
IcoLib_RegisterIconHandleEx(
- icoDesc[i].pszName, icoDesc[i].pszDesc, icoDesc[i].pszSection,
+ icoDesc[i].pszName, icoDesc[i].pszDesc, icoDesc[i].pszSection,
szDefaultFile, icoDesc[i].idResource, icoDesc[i].size, ghDefIcon);
}
|