From 98a324d2fb4babc09e94a10fef819f3409477eb2 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 14 Sep 2015 19:25:29 +0000 Subject: UserInfoEx: fix #685 git-svn-id: http://svn.miranda-ng.org/main/trunk@15353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/mir_icolib.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/mir_icolib.cpp') 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); } -- cgit v1.2.3