X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b1414681c6134c9d70b0d9cd58b89b07ae41249..8c985698885689f9e60b0d03f469e3a566fc7410:/include/wx/toplevel.h diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index d4337bc783..e2201ae8fd 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -194,7 +194,7 @@ public: // event handlers void OnCloseWindow(wxCloseEvent& event); - void OnSize(wxSizeEvent& event); + void OnSize(wxSizeEvent& WXUNUSED(event)) { DoLayout(); } // this should go away, but for now it's called from docview.cpp, // so should be there for all platforms @@ -221,6 +221,10 @@ protected: // send the iconize event, return true if processed bool SendIconizeEvent(bool iconized = true); + // do TLW-specific layout: we resize our unique child to fill the entire + // client area + void DoLayout(); + // Get the default size for the new window if no explicit size given. If // there are better default sizes then these can be changed, just as long // as they are not too small for TLWs (and not larger than screen). @@ -237,7 +241,10 @@ protected: // include the real class declaration -#if defined(__WXMSW__) +#if defined(__PALMOS__) + #include "wx/palmos/toplevel.h" + #define wxTopLevelWindowNative wxTopLevelWindowPalm +#elif defined(__WXMSW__) #include "wx/msw/toplevel.h" #define wxTopLevelWindowNative wxTopLevelWindowMSW #elif defined(__WXGTK__)