- frame = wxGetApp().CreateChildFrame(doc, this, FALSE);
-
- int width, height;
- frame->GetClientSize(&width, &height);
- textsw = new MyTextWindow(this, frame, wxPoint(0, 0), wxSize(width, height), wxTE_MULTILINE);
- frame->SetTitle(_T("TextEditView"));
-
+ m_frame = wxGetApp().CreateChildFrame(doc, this, false);
+
+ wxSize size = m_frame->GetClientSize();
+ m_textsw = new MyTextWindow(this, m_frame, wxPoint(0, 0), size, wxTE_MULTILINE);
+ m_frame->SetTitle(wxT("TextEditView"));
+