From 92209a39661334baa1552f50cdbf9698053c34de Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 9 Dec 2001 10:41:07 +0000 Subject: [PATCH] Define SF_UNICODE if undefined git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 4282e711fe..c02095d762 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -493,6 +493,10 @@ bool wxTextCtrl::StreamIn(const wxString& value, wxFontEncoding encoding) eds.dwCookie = (DWORD)&wpc; eds.pfnCallback = wxRichEditStreamIn; +#ifndef SF_UNICODE +#define SF_UNICODE 0x0010 +#endif + if ( !::SendMessage(GetHwnd(), EM_STREAMIN, SF_TEXT | SF_UNICODE | SFF_SELECTION, (LPARAM)&eds) || eds.dwError ) -- 2.45.2