X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9980eb87155735ccb5d9589029dfa768199adff..HEAD:/src/msw/ownerdrw.cpp diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index 6fb88beabb..de70ac8588 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: Marcin Malich // Created: 13.11.97 -// RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -90,7 +89,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