From 7b61f97086f46c308d708f9ddb9c532fa4b834bd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Jun 2018 17:47:35 +0300 Subject: SmileyAdd: removed old perversion with catching window messages from SRMM windows --- plugins/SmileyAdd/src/dlgboxsubclass.cpp | 26 +------------------------- plugins/SmileyAdd/src/stdafx.h | 1 - 2 files changed, 1 insertion(+), 26 deletions(-) (limited to 'plugins/SmileyAdd') diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp index 509862ec3f..5e6397aef0 100644 --- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp +++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp @@ -86,21 +86,8 @@ static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, if (dat == nullptr) return 0; - switch (uMsg) { - case DM_OPTIONSAPPLIED: + if (uMsg == DM_OPTIONSAPPLIED) dat->CreateSmileyButton(); - break; - - case DM_APPENDTOLOG: - if (opt.PluginSupportEnabled) { - // get length of text now before things can get added... - GETTEXTLENGTHEX gtl; - gtl.codepage = 1200; - gtl.flags = GTL_PRECISE | GTL_NUMCHARS; - dat->idxLastChar = (int)SendMessage(dat->hwndLog, EM_GETTEXTLENGTHEX, (WPARAM)>l, 0); - } - break; - } LRESULT result = mir_callNextSubclass(hwnd, MessageDlgSubclass, uMsg, wParam, lParam); if (!opt.PluginSupportEnabled) @@ -118,17 +105,6 @@ static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, } break; - case DM_APPENDTOLOG: - if (dat->doSmileyReplace) { - SmileyPackCType *smcp; - SmileyPackType *SmileyPack = GetSmileyPack(dat->ProtocolName, dat->hContact, &smcp); - if (SmileyPack != nullptr) { - const CHARRANGE sel = { dat->idxLastChar, LONG_MAX }; - ReplaceSmileys(dat->hwndLog, SmileyPack, smcp, sel, false, false, false); - } - } - break; - case DM_REMAKELOG: if (dat->doSmileyReplace) { SmileyPackCType *smcp; diff --git a/plugins/SmileyAdd/src/stdafx.h b/plugins/SmileyAdd/src/stdafx.h index 4e8e07dd10..3a43b4a00b 100644 --- a/plugins/SmileyAdd/src/stdafx.h +++ b/plugins/SmileyAdd/src/stdafx.h @@ -106,7 +106,6 @@ struct CMPlugin : public PLUGIN #define DM_REMAKELOG (WM_USER + 11) #define DM_OPTIONSAPPLIED (WM_USER + 14) -#define DM_APPENDTOLOG (WM_USER + 17) #define WM_REMAKERICH (WM_USER + 0x3457) -- cgit v1.2.3