summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Msg_Export/src/main.cpp')
-rw-r--r--plugins/Msg_Export/src/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Msg_Export/src/main.cpp b/plugins/Msg_Export/src/main.cpp
index 7eb98a030b..76daadba0f 100644
--- a/plugins/Msg_Export/src/main.cpp
+++ b/plugins/Msg_Export/src/main.cpp
@@ -22,11 +22,6 @@ CMPlugin g_plugin;
MWindowList hInternalWindowList = nullptr;
-IconItem iconList[] =
-{
- { "Main icon", "main", IDI_EXPORT_MESSAGE },
-};
-
/////////////////////////////////////////////////////
// Remember to update the Version in the resource !!!
/////////////////////////////////////////////////////
@@ -120,7 +115,7 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/)
CMenuItem mi(&g_plugin);
SET_UID(mi, 0x4e889089, 0x2304, 0x425f, 0x8f, 0xaa, 0x4f, 0x8a, 0x7b, 0x26, 0x4d, 0x4d); // {4E889089-2304-425F-8FAA-4F8A7B264D4D}
- mi.hIcolibItem = iconList[0].hIcolib;
+ mi.hIcolibItem = g_plugin.getIconHandle(IDI_MAIN);
mi.position = 1000090101;
mi.name.a = LPGEN("Export history");
mi.pszService = MS_EXPORT_HISTORY;
@@ -128,7 +123,7 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/)
if (!g_bReplaceHistory) {
SET_UID(mi, 0x701c543, 0xd078, 0x41dd, 0x95, 0xe3, 0x96, 0x49, 0x8a, 0x72, 0xc7, 0x50);
- mi.hIcolibItem = iconList[0].hIcolib;
+ mi.hIcolibItem = g_plugin.getIconHandle(IDI_MAIN);
mi.position = 1000090100;
mi.name.a = LPGEN("Open E&xported History");
mi.pszService = MS_SHOW_EXPORT_HISTORY;
@@ -152,6 +147,11 @@ int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/)
// Developer : KN
/////////////////////////////////////////////////////////////////////
+static IconItem iconList[] =
+{
+ { "Main icon", "main", IDI_MAIN },
+};
+
int CMPlugin::Load()
{
registerIcon(MODULENAME, iconList, MODULENAME);