X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/844adaa47ae9928450affcaaee0209cb36b9c30a..c781c31638cc5ae06eb325567323f131e8183a75:/include/wx/generic/scrolwin.h diff --git a/include/wx/generic/scrolwin.h b/include/wx/generic/scrolwin.h index 91c76bbbf3..8ce2e14996 100644 --- a/include/wx/generic/scrolwin.h +++ b/include/wx/generic/scrolwin.h @@ -32,6 +32,9 @@ extern WXDLLEXPORT_DATA(const wxChar*) wxPanelNameStr; // avoid triggering this stupid VC++ warning #ifdef __VISUALC__ + #if _MSC_VER > 1100 + #pragma warning(push) + #endif #pragma warning(disable:4355) // 'this' used in base member initializer list #endif @@ -79,9 +82,6 @@ public: // (this isn't a virtual size, this is a sensible size for the window) virtual wxSize DoGetBestSize() const; -#ifdef __WXMAC__ - virtual bool MacClipChildren() const { return true ; } -#endif protected: // this is needed for wxEVT_PAINT processing hack described in // wxScrollHelperEvtHandler::ProcessEvent() @@ -98,8 +98,8 @@ private: DECLARE_EVENT_TABLE() }; -#ifdef __VISUALC__ - #pragma warning(default:4355) +#if defined(__VISUALC__) && (_MSC_VER > 1100) + #pragma warning(pop) #endif #endif