X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c3c55cf30584177001a3fdbfe0a011cac3f8996..fbf618dff87a9e4a88d5be458cecc50309b30af3:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index cb66b14bc8..7f516e51e4 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -12,10 +12,6 @@ #ifndef _WX_WINDOW_H_BASE_ #define _WX_WINDOW_H_BASE_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "windowbase.h" -#endif - // ---------------------------------------------------------------------------- // headers which we must include here // ---------------------------------------------------------------------------- @@ -1283,6 +1279,14 @@ protected: // same size as it would have after a call to Fit() virtual wxSize DoGetBestSize() const; + // called from DoGetBestSize() to convert best virtual size (returned by + // the window sizer) to the best size for the window itself; this is + // overridden at wxScrolledWindow level to clump down virtual size to real + virtual wxSize GetWindowSizeForVirtualSize(const wxSize& size) const + { + return size; + } + // this is the virtual function to be overriden in any derived class which // wants to change how SetSize() or Move() works - it is called by all // versions of these functions in the base class