X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf072997af323a58f812f23d03cd449c2b9d121b..754273b6974634114f3821fdbbef8db01b4ff629:/src/msw/statbox.cpp diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index df9cec55e2..ec135e4af7 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -455,7 +455,8 @@ void wxStaticBox::PaintForeground(wxDC& dc, const RECT& rc) // now draw the text if ( !rtl ) { - ::DrawText(hdc, label, label.length(), &dimensions, + RECT rc2 = { x, 0, x + width, y }; + ::DrawText(hdc, label, label.length(), &rc2, DT_SINGLELINE | DT_VCENTER); } else // RTL