use GetCharHeight in GetHeight() instead of creating temporary wxClientDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dbbdd3465f
commit
3083f142d9
@ -289,10 +289,7 @@ wxRect wxStatusBarUniv::DoGetFieldRect(int n) const
|
|||||||
|
|
||||||
wxCoord wxStatusBarUniv::GetHeight() const
|
wxCoord wxStatusBarUniv::GetHeight() const
|
||||||
{
|
{
|
||||||
wxClientDC dc(wxConstCast(this, wxStatusBarUniv));
|
return GetCharHeight() + 2*GetBorderY();
|
||||||
dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
|
||||||
|
|
||||||
return dc.GetCharHeight() + 2*GetBorderY();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxSize wxStatusBarUniv::DoGetBestSize() const
|
wxSize wxStatusBarUniv::DoGetBestSize() const
|
||||||
|
Loading…
Reference in New Issue
Block a user