/////////////////////////////////////////////////////////////////////////////
-// Name: dcclient.cpp
+// Name: src/mac/classic/dcclient.cpp
// Purpose: wxClientDC class
// Author: Stefan Csomor
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "dcclient.h"
-#endif
+#include "wx/wxprec.h"
#include "wx/dcclient.h"
-#include "wx/dcmemory.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+ #include "wx/dcmemory.h"
+#endif
+
#include "wx/region.h"
-#include "wx/window.h"
#include "wx/toplevel.h"
#include "wx/math.h"
#include "wx/mac/private.h"
#include "wx/mac/uma.h"
-wxWindowDC::wxWindowDC()
+wxWindowDC::wxWindowDC()
{
m_window = NULL ;
}
-wxWindowDC::wxWindowDC(wxWindow *window)
+wxWindowDC::wxWindowDC(wxWindow *window)
{
m_window = window ;
wxTopLevelWindowMac* rootwindow = window->MacGetTopLevelWindow() ;
WindowRef windowref = (WindowRef) rootwindow->MacGetWindowRef() ;
-
+
int x , y ;
x = y = 0 ;
window->MacWindowToRootWindow( &x , &y ) ;
OffsetRgn( (RgnHandle) m_macBoundaryClipRgn , m_macLocalOrigin.x , m_macLocalOrigin.y ) ;
CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
- m_ok = TRUE ;
+ m_ok = true ;
SetBackground(window->MacGetBackgroundBrush());
}
CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
- m_ok = TRUE ;
+ m_ok = true ;
SetBackground(window->MacGetBackgroundBrush());
SetFont( window->GetFont() ) ;
}
CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
m_macPort = UMAGetWindowPort( windowref ) ;
- m_ok = TRUE ;
+ m_ok = true ;
SetBackground(window->MacGetBackgroundBrush());
SetFont( window->GetFont() ) ;
}
m_window->GetClientSize( width, height );
}
-
-