X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46ea442ca27e8b77d617481175bc7010bd602eb8..96c9640205933ad0673d5af2c96af0816c50160c:/src/msw/nonownedwnd.cpp diff --git a/src/msw/nonownedwnd.cpp b/src/msw/nonownedwnd.cpp index e656ada141..09f5ec0f8e 100644 --- a/src/msw/nonownedwnd.cpp +++ b/src/msw/nonownedwnd.cpp @@ -27,6 +27,7 @@ #ifndef __WXWINCE__ #ifndef WX_PRECOMP + #include "wx/dcclient.h" #include "wx/frame.h" // Only for wxFRAME_SHAPED. #include "wx/region.h" #include "wx/msw/private.h" @@ -34,8 +35,11 @@ #include "wx/nonownedwnd.h" -#include "wx/msw/wrapgdip.h" -#include "wx/graphics.h" +#if wxUSE_GRAPHICS_CONTEXT + #include "wx/msw/wrapgdip.h" + #include "wx/graphics.h" +#endif // wxUSE_GRAPHICS_CONTEXT + #include "wx/scopedptr.h" // ============================================================================