// Purpose: wxNonOwnedWindow implementation for MSW.
// Author: Vadim Zeitlin
// Created: 2011-10-09 (extracted from src/msw/toplevel.cpp)
-// RCS-ID: $Id: $
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#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"
#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"
// ============================================================================