diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 16:54:19 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 16:54:19 +0000 |
commit | de6c288cc72e2fa991c2cae09d6ed740972b7983 (patch) | |
tree | 4895698487b7deca8b34ef2c6643c6bc37dd13a8 | |
parent | f342271f803cf4721c709d17d244190f08d3f105 (diff) |
Tipper: ReloadSkin service
git-svn-id: http://svn.miranda-ng.org/main/trunk@16037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/TipperYM/src/tipper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp index 960f1a3646..db1783e8dc 100644 --- a/plugins/TipperYM/src/tipper.cpp +++ b/plugins/TipperYM/src/tipper.cpp @@ -293,6 +293,14 @@ int Shutdown(WPARAM, LPARAM) HANDLE hEventPreShutdown, hEventModulesLoaded;
+static INT_PTR ReloadSkin(WPARAM, LPARAM)
+{
+ ParseSkinFile(opt.szSkinName, false, false);
+ ReloadFont(0, 0);
+ SaveOptions();
+ return 0;
+}
+
extern "C" int __declspec(dllexport) Load(void)
{
CallService(MS_IMG_GETINTERFACE, FI_IF_VERSION, (LPARAM)&fii);
@@ -312,6 +320,8 @@ extern "C" int __declspec(dllexport) Load(void) hHideTipService = CreateServiceFunction("mToolTip/HideTip", HideTip);
+ CreateServiceFunction("mToolTip/ReloadSkin", ReloadSkin);
+
hEventPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, Shutdown);
hEventModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
|