summaryrefslogtreecommitdiff
path: root/plugins/IEHistory/src/IEHistory.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-21 13:24:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-21 13:24:25 +0000
commitc862405581fafcf9830be2ed4098313518b699c1 (patch)
tree4605c73ab8158a3c0cbfd179b728334a7e69e175 /plugins/IEHistory/src/IEHistory.cpp
parenta23b1597035e06afa1aca79e9812f720723a099e (diff)
first version that compiles
git-svn-id: http://svn.miranda-ng.org/main/trunk@10260 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEHistory/src/IEHistory.cpp')
-rw-r--r--plugins/IEHistory/src/IEHistory.cpp25
1 files changed, 7 insertions, 18 deletions
diff --git a/plugins/IEHistory/src/IEHistory.cpp b/plugins/IEHistory/src/IEHistory.cpp
index 86f93ed20c..b12c216810 100644
--- a/plugins/IEHistory/src/IEHistory.cpp
+++ b/plugins/IEHistory/src/IEHistory.cpp
@@ -19,8 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "stdafx.h"
-
-#include "commonheaders.h"
#include "services.h"
int hLangpack;//Miranda NG langpack used by translate functions, filled by mir_getLP()
@@ -32,12 +30,6 @@ HANDLE hOpenWindowsList = NULL;
HMODULE hUxTheme = 0;
BOOL (WINAPI *MyEnableThemeDialogTexture)(HANDLE, DWORD) = NULL;
-#ifdef _UNICODE
-#define IEHISTORY_PLUGININFO_SUFFIX " (Unicode)"
-#else
-#define IEHISTORY_PLUGININFO_SUFFIX ""
-#endif
-
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
__PLUGIN_DISPLAY_NAME,
@@ -55,15 +47,13 @@ extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD miranda
return &pluginInfo;
}
-static const MUUID interfaces[] = {MIID_UIHISTORY, MIID_LAST};
+static const MUUID interfaces[] = { MIID_UIHISTORY, MIID_LAST };
extern "C" __declspec(dllexport) const MUUID *MirandaPluginInterfaces()
{
return interfaces;
}
-#include <commctrl.h>
-
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
@@ -73,16 +63,15 @@ extern "C" int __declspec(dllexport) Load(void)
icex.dwICC = ICC_DATE_CLASSES;
InitCommonControlsEx(&icex);
-
- if((hUxTheme = LoadLibraryA("uxtheme.dll")) != 0){
- MyEnableThemeDialogTexture = (BOOL (WINAPI *)(HANDLE, DWORD))GetProcAddress(hUxTheme, "EnableThemeDialogTexture");
- }
+
+ if ((hUxTheme = LoadLibraryA("uxtheme.dll")) != 0)
+ MyEnableThemeDialogTexture = (BOOL(WINAPI *)(HANDLE, DWORD))GetProcAddress(hUxTheme, "EnableThemeDialogTexture");
//all initialization here
hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_HISTORYICON));
InitServices();
-
+
HookEvents();
return 0;
}
@@ -90,7 +79,7 @@ extern "C" int __declspec(dllexport) Load(void)
extern "C" int __declspec(dllexport) Unload()
{
DestroyServices();
-
+
WindowList_Broadcast(hOpenWindowsList, WM_CLOSE, 0, 0);
return 0;
}
@@ -98,7 +87,7 @@ extern "C" int __declspec(dllexport) Unload()
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
hInstance = hinstDLL;
- if(fdwReason == DLL_PROCESS_ATTACH){
+ if (fdwReason == DLL_PROCESS_ATTACH) {
DisableThreadLibraryCalls(hinstDLL);
LogInit();
}