X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9980eb87155735ccb5d9589029dfa768199adff..1fd850ab550a30bc600d5a10c5aed5386bf3624b:/src/msw/ownerdrw.cpp?ds=sidebyside diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index 6fb88beabb..0b0a8e513e 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -90,7 +90,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc, const wxRect& rc, int cx = rc.GetWidth() - GetMarginWidth(); int cy = sizeRect.cy; - ::DrawState(hdc, NULL, NULL, (LPARAM)text.wx_str(), + ::DrawState(hdc, NULL, NULL, wxMSW_CONV_LPARAM(text), text.length(), x, y, cx, cy, flags); } // reset to default the font, colors and brush