IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
-wxMemoryDC::wxMemoryDC()
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
{
+ if ( bitmap.IsOk() )
+ SelectObject(bitmap);
}
wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc))
void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
{
+ m_bmp = bitmap;
+
if ( !bitmap.Ok() )
{
// select the bitmap out of the DC