X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4fffffc953f68af6c968419da446a9b2e536693..67644c1dd83f2d025e061b84811eb9ba5612fd98:/include/wx/generic/scrolwin.h diff --git a/include/wx/generic/scrolwin.h b/include/wx/generic/scrolwin.h index 698e8bd824..c7ecc79bf1 100644 --- a/include/wx/generic/scrolwin.h +++ b/include/wx/generic/scrolwin.h @@ -71,9 +71,14 @@ public: virtual void DoSetVirtualSize(int x, int y); -#ifdef __WXMAC__ - virtual bool MacClipChildren() const { return true ; } -#endif + // wxWindow's GetBestVirtualSize returns the actual window size, + // whereas we want to return the virtual size + virtual wxSize GetBestVirtualSize() const; + + // Return the size best suited for the current window + // (this isn't a virtual size, this is a sensible size for the window) + virtual wxSize DoGetBestSize() const; + protected: // this is needed for wxEVT_PAINT processing hack described in // wxScrollHelperEvtHandler::ProcessEvent()