+wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner )
+ : wxWindowDCImpl( owner )
+{
+ Init();
+}
+
+wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap)
+ : wxWindowDCImpl( owner )
+{
+ Init();
+ DoSelect(bitmap);
+}
+
+wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *WXUNUSED(dc) )
+ : wxWindowDCImpl( owner )
+{
+ Init();
+}
+
+wxMemoryDCImpl::~wxMemoryDCImpl()
+{
+ g_object_unref(m_context);
+}
+
+void wxMemoryDCImpl::Init()