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:
@@ -494,7 +494,7 @@ bool wxCheckBox::MSWOnDraw(WXDRAWITEMSTRUCT *item)
|
||||
// around it
|
||||
if ( isFocused )
|
||||
{
|
||||
if ( !::DrawText(hdc, label, label.length(), &rectLabel,
|
||||
if ( !::DrawText(hdc, label.wx_str(), label.length(), &rectLabel,
|
||||
fmt | DT_CALCRECT) )
|
||||
{
|
||||
wxLogLastError(_T("DrawText(DT_CALCRECT)"));
|
||||
@@ -506,7 +506,7 @@ bool wxCheckBox::MSWOnDraw(WXDRAWITEMSTRUCT *item)
|
||||
::SetTextColor(hdc, ::GetSysColor(COLOR_GRAYTEXT));
|
||||
}
|
||||
|
||||
if ( !::DrawText(hdc, label, label.length(), &rectLabel, fmt) )
|
||||
if ( !::DrawText(hdc, label.wx_str(), label.length(), &rectLabel, fmt) )
|
||||
{
|
||||
wxLogLastError(_T("DrawText()"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user