+#if wxUSE_TOOLBAR
+ if ( width )
+ {
+ wxToolBar *toolbar = GetToolBar();
+ if ( toolbar && toolbar->HasFlag(wxTB_RIGHT) )
+ {
+ width -= toolbar->GetClientSize().x;
+ }
+ if ( toolbar && toolbar->HasFlag( wxTB_BOTTOM ) )
+ {
+ height -= toolbar->GetClientSize().y;
+ }
+ }
+#endif