From 478078d4253c15226ec453390cece2e2ef1cf48e Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 16 Feb 2015 00:10:06 +0000 Subject: TabSRMM: wine fix for send colour text git-svn-id: http://svn.miranda-ng.org/main/trunk@12135 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/generic_msghandlers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp') diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index 7f5280b9b3..299f0fa536 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -819,7 +819,6 @@ void TSAPI DM_InitRichEdit(TWindowData *dat) cf2.bPitchAndFamily = lf.lfPitchAndFamily; cf2.yHeight = abs(lf.lfHeight) * 15; SetWindowText(hwndEdit, _T("")); - SendMessage(hwndEdit, EM_SETCHARFORMAT, 0, (LPARAM)&cf2); } else { LOGFONTA lf = dat->pContainer->theme.logFonts[MSGFONTID_MESSAGEAREA]; @@ -837,8 +836,9 @@ void TSAPI DM_InitRichEdit(TWindowData *dat) cf2.wWeight = (WORD)lf.lfWeight; cf2.bPitchAndFamily = lf.lfPitchAndFamily; cf2.yHeight = abs(lf.lfHeight) * 15; - SendMessageA(hwndEdit, EM_SETCHARFORMAT, 0, (LPARAM)&cf2); } + SendMessage(hwndEdit, EM_SETCHARFORMAT, SCF_DEFAULT, (LPARAM)&cf2); + SendMessage(hwndEdit, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf2); /* WINE: fix send colour text. */ // setup the rich edit control(s) // LOG is always set to RTL, because this is needed for proper bidirectional operation later. -- cgit v1.2.3