+
+ // old functions, use the new ones instead!
+#if WXWIN_COMPATIBILITY_2
+ bool Iconized() const { return IsIconized(); }
+#endif // WXWIN_COMPATIBILITY_2
+
+ // implementation only from now on
+ // -------------------------------
+
+ // override some base class virtuals
+ virtual bool Destroy();
+ virtual bool IsTopLevel() const { return TRUE; }
+
+ // event handlers
+ void OnCloseWindow(wxCloseEvent& event);
+ void OnSize(wxSizeEvent& event);
+
+ // this should go away, but for now it's called from docview.cpp,
+ // so should be there for all platforms
+ void OnActivate(wxActivateEvent &WXUNUSED(event)) { }
+
+ // Override in derived, platfrom specific, class if your OS coordinate
+ // system uses anything other than the top left as 0,0. The second
+ // method updates any internal sizing parameters such as OS/2's SWP struct
+ inline virtual void AlterChildPos(void) { }
+ inline virtual void UpdateInternalSize( wxWindow* WXUNUSED(pChild)
+ ,int WXUNUSED(nHeight)
+ ) { }
+
+protected:
+ // the frame client to screen translation should take account of the
+ // toolbar which may shift the origin of the client area
+ virtual void DoClientToScreen(int *x, int *y) const;
+ virtual void DoScreenToClient(int *x, int *y) const;
+
+ // send the iconize event, return TRUE if processed
+ bool SendIconizeEvent(bool iconized = TRUE);
+
+ // the frame icon
+ wxIcon m_icon;
+
+ // test whether this window makes part of the frame
+ // (menubar, toolbar and statusbar are excluded from automatic layout)
+ virtual bool IsOneOfBars(const wxWindow *WXUNUSED(win)) const { return FALSE; }
+
+ DECLARE_EVENT_TABLE()