X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ca30c7d65acbe5db364ab85753e06cc2aad63ae..0555b2a0a3c509687e7fc5aeb160f5171b7e6311:/include/wx/scrolwin.h diff --git a/include/wx/scrolwin.h b/include/wx/scrolwin.h index c4bd4dfa93..89f0953362 100644 --- a/include/wx/scrolwin.h +++ b/include/wx/scrolwin.h @@ -378,10 +378,17 @@ public: if ( !(style & (wxHSCROLL | wxVSCROLL)) ) style |= wxHSCROLL | wxVSCROLL; +#ifdef __WXOSX__ + bool retval = T::Create(parent, winid, pos, size, style, name); + if ( retval && (style & wxALWAYS_SHOW_SB) ) + ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS); + return retval; +#else if ( style & wxALWAYS_SHOW_SB ) ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS); return T::Create(parent, winid, pos, size, style, name); +#endif } // we need to return a special WM_GETDLGCODE value to process just the