diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-02-16 00:10:06 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2015-02-16 00:10:06 +0000 |
commit | 478078d4253c15226ec453390cece2e2ef1cf48e (patch) | |
tree | 1d0f76df1875d28f7b5432972311ac3bc9cdd38d | |
parent | cec26ef52427660a4d86b02b767a82e1f7747f2a (diff) |
TabSRMM: wine fix for send colour text
git-svn-id: http://svn.miranda-ng.org/main/trunk@12135 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/TabSRMM/src/generic_msghandlers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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. |