// Purpose:
// Author: Vaclav Slavik
// RCS-ID: $Id$
-// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
wxWindowDC::wxWindowDC(wxWindow *win) : m_wnd(win)
{
MGLDevCtx *dc = win->GetPaintMGLDC();
+
if ( dc )
{
m_inPaintHandler = TRUE;
else
{
m_inPaintHandler = FALSE;
-
+
dc = new MGLDevCtx(MGL_wmBeginPaint(win->GetHandle()));
MGLRegion clip;