From: Julian Smart Date: Sun, 9 Dec 2001 10:41:07 +0000 (+0000) Subject: Define SF_UNICODE if undefined X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/92209a39661334baa1552f50cdbf9698053c34de Define SF_UNICODE if undefined git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 )