summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Import/src/import.h2
-rw-r--r--plugins/Import/src/utils.cpp4
-rw-r--r--plugins/Import/src/wizard.cpp3
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: