X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf072997af323a58f812f23d03cd449c2b9d121b..fcb29b233888f7012ca6cf486c8287f5463787e0:/src/msw/statbox.cpp diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index df9cec55e2..010c6d822c 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -29,7 +29,6 @@ #include "wx/statbox.h" #ifndef WX_PRECOMP - #include "wx/msw/missing.h" #include "wx/app.h" #include "wx/dcclient.h" #include "wx/dcmemory.h" @@ -41,6 +40,7 @@ #include "wx/msw/uxtheme.h" #include "wx/msw/private.h" +#include "wx/msw/missing.h" // ---------------------------------------------------------------------------- // wxWin macros @@ -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