- wxMDIChildFrame *frame;
- MyTextWindow *textsw;
-
- TextEditView(): wxView() { frame = (wxMDIChildFrame *) NULL; textsw = (MyTextWindow *) NULL; }
- ~TextEditView() {}
-
- bool OnCreate(wxDocument *doc, long flags);
- void OnDraw(wxDC *dc);
- void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL);
- bool OnClose(bool deleteWindow = TRUE);
-
+ wxMDIChildFrame* m_frame;
+ MyTextWindow* m_textsw;
+
+ TextEditView() : wxView() { m_frame = NULL; m_textsw = NULL; }
+ virtual ~TextEditView() {}
+
+ virtual bool OnCreate(wxDocument*, long flags);
+ virtual void OnDraw(wxDC* dc);
+ virtual void OnUpdate(wxView *sender, wxObject *hint = NULL);
+ virtual bool OnClose(bool deleteWindow = true);
+ virtual bool ProcessEvent(wxEvent&);
+