diff options
Diffstat (limited to 'plugins/SeenPlugin/src/main.cpp')
-rw-r--r-- | plugins/SeenPlugin/src/main.cpp | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/plugins/SeenPlugin/src/main.cpp b/plugins/SeenPlugin/src/main.cpp index 6ba25a154c..1e2b114f73 100644 --- a/plugins/SeenPlugin/src/main.cpp +++ b/plugins/SeenPlugin/src/main.cpp @@ -68,6 +68,18 @@ void UninitHistoryDialog(void); /////////////////////////////////////////////////////////////////////////////////////////
+INT_PTR GetParsedFormat(WPARAM wParam, LPARAM)
+{
+ MCONTACT hContact = (MCONTACT)wParam;
+ ptrW wszStamp(g_plugin.getWStringA("MenuStamp"));
+
+ CMStringW wszRet(ParseString(wszStamp ? wszStamp : DEFAULT_MENUSTAMP, hContact));
+
+ return (INT_PTR)wszRet.Detach();
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
static int MainInit(WPARAM, LPARAM)
{
if (g_bFileActive = g_plugin.getByte("FileOutput", 0))
@@ -92,8 +104,15 @@ static int OnShutdown(WPARAM, LPARAM) return 0;
}
+static IconItem iconList[] =
+{
+ { LPGEN("Clock"), "clock", IDI_CLOCK },
+};
+
int CMPlugin::Load()
{
+ registerIcon(MODULENAME, iconList);
+
g_pUserInfo = WindowList_Create();
g_hShutdownEvent = CreateEvent(nullptr, TRUE, FALSE, nullptr);
@@ -136,15 +155,3 @@ int CMPlugin::Unload() UninitHistoryDialog();
return 0;
}
-
-
-INT_PTR GetParsedFormat(WPARAM wParam, LPARAM)
-{
-
- MCONTACT hContact = (MCONTACT)wParam;
- ptrW wszStamp(g_plugin.getWStringA("MenuStamp"));
-
- CMStringW wszRet(ParseString(wszStamp ? wszStamp : DEFAULT_MENUSTAMP, hContact));
-
- return (INT_PTR)wszRet.Detach();
-}
\ No newline at end of file |