X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfbd6dc1921a17bd880d580dd660e8bc478a9391..4bd87101b398ea89795bae4012bbb03866b7e0f5:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 91ad453853..e48ba50b35 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -178,6 +178,10 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, if (m_windowStyle & wxTE_PASSWORD) // hidden input msStyle |= ES_PASSWORD; + if (m_windowStyle & wxTE_AUTO_SCROLL) + msStyle |= ES_AUTOHSCROLL; + + // we always want the characters and the arrows m_lDlgCode = DLGC_WANTCHARS | DLGC_WANTARROWS; @@ -416,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(); @@ -554,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); }