From c8e8e884a6a632c5766eddab2d84c6a6b2216d6c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 6 Dec 2016 14:22:46 +0300 Subject: StdMsg & Scriver: - switched to the toolbar buttons instead of the fixed button set; - switched to the shared windows list --- plugins/SmileyAdd/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/SmileyAdd/src/main.cpp') diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp index 112f3face5..a2d6c704df 100644 --- a/plugins/SmileyAdd/src/main.cpp +++ b/plugins/SmileyAdd/src/main.cpp @@ -61,14 +61,14 @@ static int ModulesLoaded(WPARAM, LPARAM) DownloadInit(); - //install hooks if enabled + // install hooks if enabled InstallDialogBoxHook(); g_SmileyCategories.AddAllProtocolsAsCategory(); g_SmileyCategories.ClearAndLoadAll(); ColourID cid = { sizeof(cid) }; - strcpy_s(cid.dbSettingsGroup, "SmileyAdd"); + strcpy_s(cid.dbSettingsGroup, MODULENAME); strcpy_s(cid.group, LPGEN("SmileyAdd")); strcpy_s(cid.name, LPGEN("Background color")); strcpy_s(cid.setting, "SelWndBkgClr"); @@ -114,6 +114,9 @@ extern "C" __declspec(dllexport) int Load(void) HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DbSettingChanged); HookEvent(ME_COLOUR_RELOAD, ReloadColour); + HookEvent(ME_MSG_BUTTONPRESSED, SmileyButtonPressed); + HookEvent(ME_MSG_TOOLBARLOADED, SmileyButtonCreate); + //create the smiley services CreateServiceFunction(MS_SMILEYADD_REPLACESMILEYS, ReplaceSmileysCommand); CreateServiceFunction(MS_SMILEYADD_SHOWSELECTION, ShowSmileySelectionCommand); -- cgit v1.2.3