more changes to make wx compile without implicit wxString->char* conversion (for STL build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -500,13 +500,13 @@ void wxStaticBox::PaintForeground(wxDC& dc, const RECT& rc)
|
||||
if ( !rtl )
|
||||
{
|
||||
RECT rc2 = { x, 0, x + width, y };
|
||||
::DrawText(hdc, label, label.length(), &rc2,
|
||||
::DrawText(hdc, label.wx_str(), label.length(), &rc2,
|
||||
DT_SINGLELINE | DT_VCENTER);
|
||||
}
|
||||
else // RTL
|
||||
{
|
||||
RECT rc2 = { x, 0, x - width, y };
|
||||
::DrawText(hdc, label, label.length(), &rc2,
|
||||
::DrawText(hdc, label.wx_str(), label.length(), &rc2,
|
||||
DT_SINGLELINE | DT_VCENTER | DT_RTLREADING);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user