X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cda5834e9d51eabc6463da5c301a7b8a3e89d80f..c04c7a3d0ae9f09bd7219b97799d9b185f1c2bab:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index 933b258595..98c2bd6b49 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -18,7 +18,7 @@ // headers // ---------------------------------------------------------------------------- -#include "wx/window.h" +#include "wx/nonownedwnd.h" #include "wx/iconbndl.h" // the default names for various classes @@ -115,7 +115,7 @@ enum // wxTopLevelWindow: a top level (as opposed to child) window // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxTopLevelWindowBase : public wxWindow +class WXDLLEXPORT wxTopLevelWindowBase : public wxNonOwnedWindow { public: // construction @@ -233,7 +233,6 @@ public: virtual bool Destroy(); virtual bool IsTopLevel() const { return true; } virtual bool IsVisible() const { return IsShown(); } - virtual wxSize GetMaxSize() const; // event handlers void OnCloseWindow(wxCloseEvent& event); @@ -249,8 +248,6 @@ public: // do the window-specific processing after processing the update event virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) ; -protected: - // a different API for SetSizeHints virtual void SetMinSize(const wxSize& minSize); virtual void SetMaxSize(const wxSize& maxSize); @@ -260,6 +257,7 @@ protected: int maxW = wxDefaultCoord, int maxH = wxDefaultCoord, int incW = wxDefaultCoord, int incH = wxDefaultCoord ); +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;