summaryrefslogtreecommitdiff
path: root/plugins/wbOSD/src/stdafx.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-17 17:09:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-17 17:09:50 +0300
commitbce8bc74daf1c5f510404c8bdf956b41fb1c10fc (patch)
tree9879ad5ce5f42087558601af6a6f2827d7df4c39 /plugins/wbOSD/src/stdafx.h
parentba1083b4da33ca44a5ae7d90eabbe3d6d340a81e (diff)
WinterSpeak, WhoUsesMyFiles, WhenWasIt, wbOSD, Watrack_MPD -> CMPlugin
Diffstat (limited to 'plugins/wbOSD/src/stdafx.h')
-rw-r--r--plugins/wbOSD/src/stdafx.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/plugins/wbOSD/src/stdafx.h b/plugins/wbOSD/src/stdafx.h
index 6d13b4fb9b..9d261f861d 100644
--- a/plugins/wbOSD/src/stdafx.h
+++ b/plugins/wbOSD/src/stdafx.h
@@ -13,7 +13,6 @@ Distributed under GNU's GPL 2 or later
#include <shlwapi.h>
#include <commctrl.h>
-#define __NO_CMPLUGIN_NEEDED
#include <newpluginapi.h>
#include <m_langpack.h>
#include <m_database.h>
@@ -29,7 +28,14 @@ Distributed under GNU's GPL 2 or later
#define THIS_MODULE "mirandaosd"
-//SETTINGS DEFAULTS
+struct CMPlugin : public PLUGIN<CMPlugin>
+{
+ CMPlugin() :
+ PLUGIN<CMPlugin>(THIS_MODULE)
+ {}
+};
+
+// Settings defaults
#define DEFAULT_FNT_HEIGHT -30
#define DEFAULT_FNT_WIDTH 0
#define DEFAULT_FNT_ESCAPEMENT 0
@@ -69,7 +75,7 @@ Distributed under GNU's GPL 2 or later
#define DEFAULT_SHOWMSGWIN 1
#define DEFAULT_SHOWWHEN 0x00000002
-//HOOKS
+// Hooks
#define ME_STATUSCHANGE_CONTACTSTATUSCHANGED "Miranda/StatusChange/ContactStatusChanged"
int ContactStatusChanged(WPARAM wParam, LPARAM lParam);
@@ -77,11 +83,9 @@ int ProtoAck(WPARAM wparam,LPARAM lparam);
int ContactSettingChanged(WPARAM wparam,LPARAM lparam);
int HookedNewEvent(WPARAM wParam, LPARAM lParam);
-//ANNOUNCING MESSAGES FROM OUTSIDE ;-)
+// Announcing messages from outside
INT_PTR OSDAnnounce(WPARAM wParam, LPARAM lParam);
-
-
#define ID_STATUS_MIN ID_STATUS_OFFLINE
#define ID_STATUS_MAX ID_STATUS_OUTTOLUNCH
@@ -114,6 +118,5 @@ int OptionsInit(WPARAM wparam,LPARAM lparam);
void loadDBSettings(plgsettings *ps);
-extern HINSTANCE hI;
-extern HWND g_hWnd;
-extern HANDLE hHookedInit, hProtoAck, hContactSettingChanged, hHookContactStatusChanged, hContactStatusChanged; \ No newline at end of file
+extern HWND g_hWnd;
+extern HANDLE hHookContactStatusChanged;