X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d74a760130b1cba417ad7eb61a146dee9144d22..cb0b7b7d811356f729315fc14c7e0d311f43384d:/src/univ/winuniv.cpp diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 8c8a4f17cf..4892f9d8eb 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -17,10 +17,6 @@ // headers // --------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "univwindow.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -142,8 +138,8 @@ bool wxWindow::Create(wxWindow *parent, // when calling the base window Create(). wxWindowBase::SetWindowStyleFlag(style); - // if we should always have a vertical scrollbar, do show it - if ( style & wxALWAYS_SHOW_SB ) + // if we allow or should always have a vertical scrollbar, make it + if ( style & wxVSCROLL || style & wxALWAYS_SHOW_SB ) { #if wxUSE_TWO_WINDOWS SetInsertIntoMain( true ); @@ -156,7 +152,7 @@ bool wxWindow::Create(wxWindow *parent, #endif } - // if we should always have a horizontal scrollbar, do show it + // if we should allow a horizontal scrollbar, make it if ( style & wxHSCROLL ) { #if wxUSE_TWO_WINDOWS @@ -343,7 +339,7 @@ bool wxWindow::DoDrawBackground(wxDC& dc) } else { - // Draw background ouselves + // Draw background ourselves EraseBackground( dc, rect ); }