diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-24 20:27:01 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-24 20:27:01 +0000 |
commit | 16e765a9e03ef4ee99cbf4c03b06272eb3ebd398 (patch) | |
tree | 5b1b860497de80ff81bc5d2d163b96e1a06759c7 | |
parent | 24914309cc6db275c5779078357861ddf22a469e (diff) |
Import: big icon in taskbar
git-svn-id: http://svn.miranda-ng.org/main/trunk@13818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Import/src/import.h | 2 | ||||
-rw-r--r-- | plugins/Import/src/utils.cpp | 4 | ||||
-rw-r--r-- | plugins/Import/src/wizard.cpp | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Import/src/import.h b/plugins/Import/src/import.h index b940e9e3fa..1b6d55710e 100644 --- a/plugins/Import/src/import.h +++ b/plugins/Import/src/import.h @@ -105,6 +105,6 @@ extern int nImportOptions; extern TCHAR importFile[];
extern time_t dwSinceDate;
-HICON GetIcon(int iIconId);
+HICON GetIcon(int iIconId, int size = 0);
HANDLE GetIconHandle(int iIconId);
void RegisterIcons(void);
diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp index b8c11433ef..0b03c5299e 100644 --- a/plugins/Import/src/utils.cpp +++ b/plugins/Import/src/utils.cpp @@ -216,11 +216,11 @@ static IconItem iconList[] = { LPGEN("Import..."), "import_main", IDI_IMPORT }
};
-HICON GetIcon(int iIconId)
+HICON GetIcon(int iIconId, int size)
{
for (int i = 0; i < SIZEOF(iconList); i++)
if (iconList[i].defIconID == iIconId)
- return Skin_GetIconByHandle(iconList[i].hIcolib);
+ return Skin_GetIconByHandle(iconList[i].hIcolib, size);
return NULL;
}
diff --git a/plugins/Import/src/wizard.cpp b/plugins/Import/src/wizard.cpp index 907ecbbe48..0bd02ced23 100644 --- a/plugins/Import/src/wizard.cpp +++ b/plugins/Import/src/wizard.cpp @@ -99,7 +99,8 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP SetWindowPos(hwndPage, 0, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE);
ShowWindow(hwndPage, SW_SHOW);
ShowWindow(hdlg, SW_SHOW);
- SendMessage(hdlg, WM_SETICON, ICON_BIG, (LPARAM)GetIcon(IDI_IMPORT));
+ SendMessage(hdlg, WM_SETICON, ICON_SMALL, (LPARAM)GetIcon(IDI_IMPORT));
+ SendMessage(hdlg, WM_SETICON, ICON_BIG, (LPARAM)GetIcon(IDI_IMPORT, 32));
return TRUE;
case WIZM_GOTOPAGE:
|