X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ce1efe123a9b5f7dbb5be4aaf3dd0a21b399f38..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/checklst.cpp diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index c6b3721354..b31e46e999 100644 --- a/src/msw/checklst.cpp +++ b/src/msw/checklst.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "checklst.h" #endif @@ -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 @@ -67,6 +69,11 @@ IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox) +/* +TODO PROPERTIES + list content + item , checked (no) +*/ // ---------------------------------------------------------------------------- // declaration and implementation of wxCheckListBoxItem class // ---------------------------------------------------------------------------- @@ -161,7 +168,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,