diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/CCtrlRichEdit.cpp | 17 | ||||
-rw-r--r-- | src/mir_core/src/mir_core.def | 1 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 1 |
3 files changed, 0 insertions, 19 deletions
diff --git a/src/mir_core/src/CCtrlRichEdit.cpp b/src/mir_core/src/CCtrlRichEdit.cpp index 5fd2203d5d..1a1abc11fc 100644 --- a/src/mir_core/src/CCtrlRichEdit.cpp +++ b/src/mir_core/src/CCtrlRichEdit.cpp @@ -44,23 +44,6 @@ int CCtrlRichEdit::GetRichTextLength(int iCodePage) const return (int)SendMessage(m_hwnd, EM_GETTEXTLENGTHEX, (WPARAM)>l, 0); } -char* CCtrlRichEdit::GetRichTextUtf() const -{ - int textBufferSize = GetRichTextLength(CP_UTF8); - if (textBufferSize == 0) - return nullptr; - - textBufferSize++; - char *textBuffer = (char*)mir_alloc(textBufferSize+1); - - GETTEXTEX gt = {}; - gt.cb = textBufferSize; - gt.flags = GT_USECRLF; - gt.codepage = CP_UTF8; - SendMessage(m_hwnd, EM_GETTEXTEX, (WPARAM)>, (LPARAM)textBuffer); - return textBuffer; -} - int CCtrlRichEdit::SetRichText(const wchar_t *text) { SETTEXTEX st; diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 5fd89d1bca..f5037de864 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1045,7 +1045,6 @@ CallFunctionSync @1170 ?GetRichTextLength@CCtrlRichEdit@@QBEHH@Z @1232 NONAME
?SetRichText@CCtrlRichEdit@@QAEHPB_W@Z @1233 NONAME
?SetRichTextRtf@CCtrlRichEdit@@QAEHPBD@Z @1234 NONAME
-?GetRichTextUtf@CCtrlRichEdit@@QBEPADXZ @1235 NONAME
?GetRichTextRtf@CCtrlRichEdit@@QBEPAD_N0@Z @1236 NONAME
?SetReadOnly@CCtrlRichEdit@@QAEX_N@Z @1237 NONAME
?Hide@CDlgBase@@QAEXXZ @1238 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 02fa033f13..31edd2dbea 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1045,7 +1045,6 @@ CallFunctionSync @1170 ?GetRichTextLength@CCtrlRichEdit@@QEBAHH@Z @1232 NONAME
?SetRichText@CCtrlRichEdit@@QEAAHPEB_W@Z @1233 NONAME
?SetRichTextRtf@CCtrlRichEdit@@QEAAHPEBD@Z @1234 NONAME
-?GetRichTextUtf@CCtrlRichEdit@@QEBAPEADXZ @1235 NONAME
?GetRichTextRtf@CCtrlRichEdit@@QEBAPEAD_N0@Z @1236 NONAME
?SetReadOnly@CCtrlRichEdit@@QEAAX_N@Z @1237 NONAME
?Hide@CDlgBase@@QEAAXXZ @1238 NONAME
|