X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ce1efe123a9b5f7dbb5be4aaf3dd0a21b399f38..0b7824d78a475810924776e02004723cc4e20c84:/src/msw/checklst.cpp diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index c6b3721354..df2f156ce3 100644 --- a/src/msw/checklst.cpp +++ b/src/msw/checklst.cpp @@ -47,9 +47,11 @@ #include "wx/ownerdrw.h" #include "wx/checklst.h" -#include +#include "wx/msw/wrapwin.h" #include +#include "wx/msw/private.h" + #if defined(__GNUWIN32_OLD__) #include "wx/msw/gnuwin32/extra.h" #endif @@ -161,7 +163,11 @@ bool wxCheckListBoxItem::OnDrawItem(wxDC& dc, const wxRect& rc, rect.right = nCheckWidth; rect.bottom = nCheckHeight; +#ifdef __WXWINCE__ + DrawFrameControl(hdcMem, &rect, DFC_BUTTON, DFCS_BUTTONCHECK); +#else DrawFrameControl(hdcMem, &rect, DFC_MENU, DFCS_MENUCHECK); +#endif // finally copy it to screen DC and clean up BitBlt(hdc, x, y, nCheckWidth - 1, nCheckHeight,