X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfdd3a98d8b374351ab2ed8f48a155fa52f52c74..d06b34a73eb466126513bf8b0ed586a8ababc141:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index c4e85c8f19..e48ba50b35 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -420,7 +420,7 @@ void wxTextCtrl::SetValue(const wxString& value) if ( (value.length() > 0x400) || (value != GetValue()) ) { wxString valueDos = wxTextFile::Translate(value, wxTextFileType_Dos); - + SetWindowText(GetHwnd(), valueDos.c_str()); AdjustSpaceLimit(); @@ -558,7 +558,7 @@ void wxTextCtrl::SetInsertionPoint(long pos) SendMessage(hWnd, EM_SETSEL, 0, MAKELPARAM(pos, pos)); #endif // Win32/16 - static const char *nothing = ""; + static const wxChar *nothing = _T(""); SendMessage(hWnd, EM_REPLACESEL, 0, (LPARAM)nothing); }