X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/451871970b59e32b778d0a484a6eca90a9b07139..9018abe3ef28d237b0421c8d96987907adbe5532:/src/msw/checklst.cpp diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index 2eb9b3d7a6..9ab8c3ceb7 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,13 +20,21 @@ #pragma hdrstop #endif -#if USE_OWNER_DRAWN - -#include +#if wxUSE_OWNER_DRAWN +#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" +#include + // ============================================================================ // implementation // ============================================================================ @@ -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));