respect background colour of wxStaticText in wxUniv

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-12-15 01:32:26 +00:00
parent 5fe6c02bb8
commit 9c5fd8a319
2 changed files with 12 additions and 0 deletions

View File

@@ -88,6 +88,14 @@ wxSize wxStaticText::DoGetBestClientSize() const
void wxStaticText::DoDraw(wxControlRenderer *renderer)
{
if ( UseBgCol() )
{
wxDC& dc = renderer->GetDC();
dc.SetBrush(GetBackgroundColour());
dc.SetPen(*wxTRANSPARENT_PEN);
dc.DrawRectangle(renderer->GetRect());
}
renderer->DrawLabel();
}