Define SF_UNICODE if undefined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user