From: Vadim Zeitlin Date: Tue, 8 Jan 2008 19:08:58 +0000 (+0000) Subject: restore SetSelection(-1, -1) behaviour which was broken during wxTextEntry refactoring X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8df26961603924444b44272d34e0c2cab95cfdb5 restore SetSelection(-1, -1) behaviour which was broken during wxTextEntry refactoring git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index fc8676db3f..412c7a551a 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -1307,7 +1307,7 @@ void wxTextCtrl::DoSetSelection(long from, long to, int flags) else #endif // wxUSE_RICHEDIT { - ::SendMessage(hWnd, EM_SETSEL, from, to); + wxTextEntry::DoSetSelection(from, to, flags); } if ( (flags & SetSel_Scroll) && !IsFrozen() )