summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/Options.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-08-23 00:11:36 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-08-23 00:11:36 +0300
commitbf9981cdfdaf818530c180d6975e0f6a53dcc944 (patch)
tree9daef0a1ca77fccf29d80fe1b9184490e5971399 /plugins/IEView/src/Options.cpp
parent5cd3afbd509c515604921b2713960fb25b5bce73 (diff)
IEView: all icons added to icolib (fixes #295)
Diffstat (limited to 'plugins/IEView/src/Options.cpp')
-rw-r--r--plugins/IEView/src/Options.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/IEView/src/Options.cpp b/plugins/IEView/src/Options.cpp
index 841bebac25..59723e6c5f 100644
--- a/plugins/IEView/src/Options.cpp
+++ b/plugins/IEView/src/Options.cpp
@@ -360,10 +360,10 @@ static void RefreshIcons()
else {
hImageList = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_MASK | ILC_COLOR32, 0, 0);
}
- ImageList_AddIcon(hImageList, (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_GROUP_OFF), IMAGE_ICON, 0, 0, 0));
- ImageList_AddIcon(hImageList, (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_GROUP_ON), IMAGE_ICON, 0, 0, 0));
- ImageList_AddIcon(hImageList, (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_RTL_OFF), IMAGE_ICON, 0, 0, 0));
- ImageList_AddIcon(hImageList, (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_RTL_ON), IMAGE_ICON, 0, 0, 0));
+ ImageList_AddIcon(hImageList, IcoLib_GetIconByHandle(iconList[3].hIcolib));
+ ImageList_AddIcon(hImageList, IcoLib_GetIconByHandle(iconList[2].hIcolib));
+ ImageList_AddIcon(hImageList, IcoLib_GetIconByHandle(iconList[1].hIcolib));
+ ImageList_AddIcon(hImageList, IcoLib_GetIconByHandle(iconList[0].hIcolib));
}
static void RefreshProtoList(HWND hwndDlg, int mode, bool protoTemplates)