- wxPaintDC dc(this);
-
-#ifdef __WXGTK20__
- // Draw grip first
- if (HasFlag( wxST_SIZEGRIP ))
- {
- int width, height;
- GetClientSize(&width, &height);
-
- if (GetLayoutDirection() == wxLayout_RightToLeft)
- {
- gtk_paint_resize_grip( m_widget->style,
- GTK_PIZZA(m_wxwindow)->bin_window,
- (GtkStateType) GTK_WIDGET_STATE (m_widget),
- NULL,
- m_widget,
- "statusbar",
- GDK_WINDOW_EDGE_SOUTH_WEST,
- 2, 2, height-2, height-4 );
- }
- else
- {
- gtk_paint_resize_grip( m_widget->style,
- GTK_PIZZA(m_wxwindow)->bin_window,
- (GtkStateType) GTK_WIDGET_STATE (m_widget),
- NULL,
- m_widget,
- "statusbar",
- GDK_WINDOW_EDGE_SOUTH_EAST,
- width-height-2, 2, height-2, height-4 );
- }
- }
-#endif
-
- if (GetFont().Ok())
- dc.SetFont(GetFont());
-
- dc.SetBackgroundMode(wxTRANSPARENT);
-
-#ifdef __WXPM__
- wxColour vColor;
-
- vColor = wxSystemSettings::GetColour(wxSYS_COLOUR_MENUBAR);
- ::WinFillRect(dc.m_hPS, &dc.m_vRclPaint, vColor.GetPixel());
-#endif