use window's font instead of the default one in wxStatusBar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-10-25 18:14:08 +00:00
parent 3811dacb39
commit 686ca1b5d4

View File

@@ -110,7 +110,8 @@ void wxStatusBarUniv::DoDraw(wxControlRenderer *renderer)
// prepare the DC
wxDC& dc = renderer->GetDC();
dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
dc.SetFont(GetFont());
dc.SetTextForeground(GetForegroundColour());
// do draw the fields
int flags = IsEnabled() ? 0 : (int)wxCONTROL_DISABLED;