Fix bug where labels were multicoloured if their length > box width using XP with a non-default colour.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jamie Gadd 2006-02-23 13:50:39 +00:00
parent a7f61f762d
commit 1d6e57680c

View File

@ -386,7 +386,7 @@ void wxStaticBox::PaintForeground(wxDC& dc, const RECT& WXUNUSED(rc))
const int x = 9;
// TODO: RTL?
RECT rc = { x, 0, GetSize().x - x, y };
RECT rc = { x, 0, GetSize().x, y };
const wxString label = GetLabel();
::DrawText(hdc, label, label.length(), &rc, DT_SINGLELINE | DT_VCENTER);