diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 16:41:14 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-06 16:41:14 +0000 |
commit | f342271f803cf4721c709d17d244190f08d3f105 (patch) | |
tree | bb402dbd6f92dd628a997d3fe1f903ecdd24ac4a /plugins/TabSRMM | |
parent | 30e956d53d86b3375a7a7526992252e1eab90d1a (diff) |
TabSRMM: added ReloadSkin service
git-svn-id: http://svn.miranda-ng.org/main/trunk@16036 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index 34c49be384..3963d18c98 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -208,6 +208,13 @@ static INT_PTR BroadcastMessage(WPARAM, LPARAM lParam) return 0;
}
+static INT_PTR ReloadSkin(WPARAM, LPARAM)
+{
+ Skin->setFileName();
+ Skin->Load();
+ return 0;
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// service function finds a message session
// wParam = contact handle for which we want the window handle
@@ -939,6 +946,7 @@ static void TSAPI InitAPI() CreateServiceFunction(MS_MSG_MOD_MESSAGEDIALOGOPENED, MessageWindowOpened);
CreateServiceFunction("SRMsg/BroadcastMessage", BroadcastMessage);
+ CreateServiceFunction("TabSRMsg/ReloadSkin", ReloadSkin);
SI_InitStatusIcons();
CB_InitCustomButtons();
|