diff --git a/include/wx/msw/textctrl.h b/include/wx/msw/textctrl.h index ee8d91971f..af6ce10eaf 100644 --- a/include/wx/msw/textctrl.h +++ b/include/wx/msw/textctrl.h @@ -237,8 +237,9 @@ protected: #if wxUSE_RICHEDIT // we're using RICHEDIT (and not simple EDIT) control if this field is not - // 0, it also gives the version of the RICHEDIT control being used (1, 2 or - // 3 so far) + // 0, it also gives the version of the RICHEDIT control being used + // (although not directly: 1 is for 1.0, 2 is for either 2.0 or 3.0 as we + // can't nor really need to distinguish between them and 4 is for 4.1) int m_verRichEdit; #endif // wxUSE_RICHEDIT diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index c2417d2cc4..c941de8b57 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -434,6 +434,8 @@ bool wxTextCtrl::MSWCreateText(const wxString& value, { // yes, class name for version 4.1 really is 5.0 windowClass = wxT("RICHEDIT50W"); + + m_verRichEdit = 4; } else if ( wxRichEditModule::Load(wxRichEditModule::Version_2or3) ) {