X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af8fc1161cc10818b95bea8f08c2bd0995a1964d..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/msw/checklst.cpp diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index 98a4e6763b..1ac17a4420 100644 --- a/src/msw/checklst.cpp +++ b/src/msw/checklst.cpp @@ -174,8 +174,9 @@ bool wxCheckListBoxItem::OnDrawItem(wxDC& dc, const wxRect& rc, if ( !wxOwnerDrawn::OnDrawItem(dc, rc, act, stat) ) return false; + wxMSWDCImpl *impl = (wxMSWDCImpl*) dc.GetImpl(); // now draw the check mark part - HDC hdc = GetHdcOf(dc); + HDC hdc = GetHdcOf(*impl); int nBmpWidth = ::GetSystemMetrics(SM_CXMENUCHECK), nBmpHeight = ::GetSystemMetrics(SM_CYMENUCHECK);