// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/dcmemory.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/os2/private.h"
-#include "wx/dcmemory.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
/////////////////////////////////////////////////////////////////////////////
// Memory DC
/////////////////////////////////////////////////////////////////////////////
-wxMemoryDC::wxMemoryDC(void)
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
{
CreateCompatible(NULL);
Init();
+
+ if ( bitmap.IsOk() )
+ SelectObject(bitmap);
} // end of wxMemoryDC::wxMemoryDC
wxMemoryDC::wxMemoryDC(