- wxASSERT_MSG( m_mainDc != NULL,
- _T("No underlying DC associated with wxBufferedDC (anymore)") );
-
- wxDC* bufferDc = DetachDC();
-
- wxASSERT( bufferDc->IsKindOf(CLASSINFO(wxMemoryDC)) );
-
- wxCoord x=0, y=0;
-
- if (m_style & wxBUFFER_CLIENT_AREA)
- bufferDc->GetDeviceOrigin(& x, & y);