summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_icons.cpp')
-rw-r--r--protocols/Tox/src/tox_icons.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_icons.cpp b/protocols/Tox/src/tox_icons.cpp
index 928685ebf3..5e95d49c24 100644
--- a/protocols/Tox/src/tox_icons.cpp
+++ b/protocols/Tox/src/tox_icons.cpp
@@ -2,7 +2,9 @@
IconItemT CToxProto::Icons[] =
{
- { LPGENW("Protocol icon"), "main", IDI_TOX },
+ { LPGENW("Protocol icon"), "main", IDI_TOX },
+ { LPGENW("Action icon"), "main", IDI_ME },
+ { LPGENW("Correction icon"), "edit", IDI_EDIT },
};
void CToxProto::InitIcons()
@@ -15,6 +17,13 @@ HANDLE CToxProto::GetIconHandle(int iconId)
for (size_t i = 0; i < _countof(Icons); i++)
if (Icons[i].defIconID == iconId)
return Icons[i].hIcolib;
+ return nullptr;
+}
+HICON CToxProto::GetIcon(int iconId)
+{
+ for (size_t i = 0; i < _countof(Icons); i++)
+ if (Icons[i].defIconID == iconId)
+ return IcoLib_GetIconByHandle(Icons[i].hIcolib);
return nullptr;
}