diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-08 10:13:05 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-08 10:13:05 +0000 |
commit | 4b120013511a56eeee224272825c8711957d20d2 (patch) | |
tree | 4a7fbe404fb99124339afea346d10bb23fcf005f /plugins/SmileyAdd/src/main.cpp | |
parent | 284bcba502b7b70c564adcbe508ea4e42ad67e17 (diff) |
SmileyAdd: background color setting moved to core colors
git-svn-id: http://svn.miranda-ng.org/main/trunk@16055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/main.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp index 1749c70a8e..5caa18710b 100644 --- a/plugins/SmileyAdd/src/main.cpp +++ b/plugins/SmileyAdd/src/main.cpp @@ -65,6 +65,13 @@ static int ModulesLoaded(WPARAM, LPARAM) g_SmileyCategories.AddAllProtocolsAsCategory();
g_SmileyCategories.ClearAndLoadAll();
+ ColourID cid = { sizeof(cid) };
+ strcpy_s(cid.dbSettingsGroup, "SmileyAdd");
+ strcpy_s(cid.group, "SmileyAdd");
+ strcpy_s(cid.name, "Background color");
+ strcpy_s(cid.setting, "SelWndBkgClr");
+ cid.defcolour = GetSysColor(COLOR_WINDOW);
+ ColourRegister(&cid);
return 0;
}
@@ -102,6 +109,7 @@ extern "C" __declspec(dllexport) int Load(void) HookEvent(ME_SMILEYADD_OPTIONSCHANGED, UpdateSrmmDlg);
HookEvent(ME_PROTO_ACCLISTCHANGED, AccountListChanged);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DbSettingChanged);
+ HookEvent(ME_COLOUR_RELOAD, ReloadColour);
//create the smiley services
CreateServiceFunction(MS_SMILEYADD_REPLACESMILEYS, ReplaceSmileysCommand);
|