]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/stattext.cpp
Fixed a confusion between window and client size that could lead to
[wxWidgets.git] / src / univ / stattext.cpp
index 509a5d6dde3b09c1313ab15180170507ab786aba..83ebf31eaf51cec685a486fd40f6a7f838eb51f7 100644 (file)
@@ -88,6 +88,14 @@ wxSize wxStaticText::DoGetBestClientSize() const
 
 void wxStaticText::DoDraw(wxControlRenderer *renderer)
 {
 
 void wxStaticText::DoDraw(wxControlRenderer *renderer)
 {
+    if ( UseBgCol() )
+    {
+        wxDC& dc = renderer->GetDC();
+        dc.SetBrush(GetBackgroundColour());
+        dc.SetPen(*wxTRANSPARENT_PEN);
+        dc.DrawRectangle(renderer->GetRect());
+    }
+
     renderer->DrawLabel();
 }
 
     renderer->DrawLabel();
 }