+ wxString string3L("Read only\nMultiline\nFitted size");
+ m_readonly = new MyTextCtrl( this, wxID_ANY, string3L,
+ wxPoint(10, 120), wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY );
+ wxWindowDC dc(m_readonly);
+ size2 = m_readonly->GetSizeFromTextSize(dc.GetMultiLineTextExtent(string3L));
+ m_readonly->SetMinSize(size2);
+