X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b1414681c6134c9d70b0d9cd58b89b07ae41249..684e0b31ef682c2645a7f94fac51236a5abfead1:/include/wx/toplevel.h?ds=sidebyside diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index d4337bc783..a3b3afcce1 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).