+#endif // wxUSE_SCROLLBAR
+#if wxUSE_TWO_WINDOWS
+ SetInsertIntoMain( false );
+#endif
+ }
+
+ // if we should allow a horizontal scrollbar, make it
+ if ( style & wxHSCROLL )
+ {
+#if wxUSE_TWO_WINDOWS
+ SetInsertIntoMain( true );
+#endif
+#if wxUSE_SCROLLBAR
+ m_scrollbarHorz = new wxScrollBar(this, wxID_ANY,
+ wxDefaultPosition, wxDefaultSize,
+ wxSB_HORIZONTAL);
+#endif // wxUSE_SCROLLBAR