// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
-// Copyright: (c) Julian Smart and Markus Holzem
+// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#endif
}
+void wxWindowDC::DoGetSize(int *width, int *height) const
+{
+ wxCHECK_RET( m_canvas, _T("wxWindowDC without a window?") );
+
+ m_canvas->GetSize(width, height);
+}
+
// ----------------------------------------------------------------------------
// wxClientDC
// ----------------------------------------------------------------------------
{
}
+void wxClientDC::DoGetSize(int *width, int *height) const
+{
+ wxCHECK_RET( m_canvas, _T("wxClientDC without a window?") );
+
+ m_canvas->GetClientSize(width, height);
+}
+
// ----------------------------------------------------------------------------
// wxPaintDC
// ----------------------------------------------------------------------------
size_t nCache = ms_cache.GetCount();
for ( size_t n = 0; n < nCache; n++ )
{
- info = &ms_cache[n];
- if ( info->hwnd == m_canvas->GetHWND() )
+ wxPaintDCInfo *info1 = &ms_cache[n];
+ if ( info1->hwnd == m_canvas->GetHWND() )
{
+ info = info1;
if ( index )
*index = n;
break;