diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-08-25 08:26:58 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-08-25 08:26:58 +0300 |
commit | 8cfe261befe72935a8ae48ac8203021aa9e3fb14 (patch) | |
tree | b5c238db17b1a10adc18e1e4f6f44d5cf3234929 /protocols/MRA/src/MraIcons.cpp | |
parent | 46425ea8d084497a7b29ed9b7a57188732726406 (diff) |
MRA: icon added to icolib, not used icon removed (fixes #298)
Diffstat (limited to 'protocols/MRA/src/MraIcons.cpp')
-rw-r--r-- | protocols/MRA/src/MraIcons.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/MRA/src/MraIcons.cpp b/protocols/MRA/src/MraIcons.cpp index ee5a2f35f5..5da2288ad1 100644 --- a/protocols/MRA/src/MraIcons.cpp +++ b/protocols/MRA/src/MraIcons.cpp @@ -3,6 +3,11 @@ HANDLE hXStatusAdvancedStatusIcons[MRA_XSTATUS_COUNT+4];
+IconItem gdiMainIcon[1] =
+{
+ { LPGEN("Main icon"), "main", IDI_MRA }
+};
+
IconItem gdiMenuItems[MAIN_MENU_ITEMS_COUNT] =
{
{ MRA_GOTO_INBOX_STR, MRA_GOTO_INBOX, IDI_INBOX },
@@ -64,11 +69,12 @@ HICON IconLibGetIconEx(HANDLE hIcon, DWORD dwFlags) void IconsLoad()
{
- g_hMainIcon = (HICON)LoadImage(g_hInstance, MAKEINTRESOURCE(IDI_MRA), IMAGE_ICON, 0, 0, LR_SHARED);
-
+ Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA"), gdiMainIcon, 1, "MRA_");
Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA") "/" LPGEN("Main Menu"), gdiMenuItems, MAIN_MENU_ITEMS_COUNT, "MRA_");
Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA") "/" LPGEN("Contact Menu"), gdiContactMenuItems, CONTACT_MENU_ITEMS_COUNT, "MRA_");
Icon_Register(g_hInstance, LPGEN("Protocols") "/" LPGEN("MRA") "/" LPGEN("Extra status"), gdiExtraStatusIconsItems, ADV_ICON_MAX, "MRA_");
+
+ g_hMainIcon = IconLibGetIcon(gdiMainIcon[0].hIcolib);
}
void InitXStatusIcons()
|