X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/451871970b59e32b778d0a484a6eca90a9b07139..3f1af9204f1813a10e2c59a5f9b28a7eec630861:/src/msw/checklst.cpp diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index 2eb9b3d7a6..b4848d08c2 100644 --- a/src/msw/checklst.cpp +++ b/src/msw/checklst.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows license /////////////////////////////////////////////////////////////////////////////// -// ============================================================================ -// headers & declarations -// ============================================================================ - #ifdef __GNUG__ #pragma implementation "checklst.h" #endif @@ -24,11 +20,19 @@ #pragma hdrstop #endif -#if USE_OWNER_DRAWN +#if wxUSE_OWNER_DRAWN #include +#include "wx/object.h" +#include "wx/colour.h" +#include "wx/font.h" +#include "wx/bitmap.h" +#include "wx/window.h" +#include "wx/listbox.h" #include "wx/ownerdrw.h" +#include "wx/settings.h" +#include "wx/dcmemory.h" #include "wx/msw/checklst.h" // ============================================================================ @@ -124,7 +128,9 @@ bool wxCheckListBoxItem::OnDrawItem(wxDC& dc, const wxRect& rc, RECT rect = { 0, 0, nCheckWidth, nCheckHeight }; #ifdef __WIN32__ +#ifndef __SC__ DrawFrameControl(hdcMem, &rect, DFC_MENU, DFCS_MENUCHECK); +#endif #else // In WIN16, draw a cross HPEN blackPen = CreatePen(PS_SOLID, 1, RGB(0, 0, 0));