X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85ee88cd536cbf8b347e58f84b160b60204ed157..43c42c18d36c703a88b1b7b697bac27fe5608eca:/src/msw/ownerdrw.cpp diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index 04fbc28368..0b0a8e513e 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -22,6 +22,7 @@ #include "wx/msw/dc.h" #include "wx/msw/private.h" #include "wx/msw/private/dc.h" +#include "wx/msw/wrapcctl.h" // for HIMAGELIST #ifndef DSS_HIDEPREFIX #define DSS_HIDEPREFIX 0x0200 @@ -89,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