summaryrefslogtreecommitdiff
path: root/plugins/Console/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Console/src/init.cpp')
-rw-r--r--plugins/Console/src/init.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/Console/src/init.cpp b/plugins/Console/src/init.cpp
index 0b8637c1dc..1d68a1c76e 100644
--- a/plugins/Console/src/init.cpp
+++ b/plugins/Console/src/init.cpp
@@ -53,10 +53,26 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfoEx;
}
+static IconItem iconList[] =
+{
+ { "Show", "Console_Up", IDI_BTN_UP },
+ { "Hide", "Console_Down", IDI_BTN_DN },
+};
+
+HANDLE LoadIcon(int iIconID)
+{
+ for (int i = 0; i < SIZEOF(iconList); i++)
+ if (iconList[i].defIconID == iIconID)
+ return iconList[i].hIcolib;
+ return NULL;
+}
+
extern "C" __declspec(dllexport) int Load(void)
{
mir_getLP(&pluginInfoEx);
+ Icon_Register(hInst, "Console", iconList, SIZEOF(iconList));
+
InitCommonControls();
InitConsole();
return 0;