From 4b120013511a56eeee224272825c8711957d20d2 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 8 Jan 2016 10:13:05 +0000 Subject: SmileyAdd: background color setting moved to core colors git-svn-id: http://svn.miranda-ng.org/main/trunk@16055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/src/services.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'plugins/SmileyAdd/src/services.cpp') diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp index c85d1789c9..4fd7bc9771 100644 --- a/plugins/SmileyAdd/src/services.cpp +++ b/plugins/SmileyAdd/src/services.cpp @@ -351,12 +351,25 @@ INT_PTR ReloadPack(WPARAM, LPARAM lParam) if (smc != NULL) smc->Load(); } else + { + g_SmileyCategories.ClearAll(); + g_SmileyCategories.AddAllProtocolsAsCategory(); g_SmileyCategories.ClearAndLoadAll(); + } NotifyEventHooks(hEvent1, 0, 0); return 0; } +INT_PTR ReloadOptions(WPARAM, LPARAM) +{ + g_SmileyCategories.ClearAll(); + g_SmileyCategories.AddAllProtocolsAsCategory(); + g_SmileyCategories.ClearAndLoadAll(); + opt.Load(); + return 0; +} + INT_PTR LoadContactSmileys(WPARAM, LPARAM lParam) { if (opt.DisableCustom) return 0; @@ -445,3 +458,10 @@ int DbSettingChanged(WPARAM hContact, LPARAM lParam) } return 0; } + + +int ReloadColour(WPARAM, LPARAM) +{ + opt.SelWndBkgClr = db_get_dw(NULL, "SmileyAdd", "SelWndBkgClr", GetSysColor(COLOR_WINDOW)); + return 0; +} \ No newline at end of file -- cgit v1.2.3