/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name: src/mgl/dcmemory.cpp
// Purpose:
// Author: Robert Roebling, Vaclav Slavik
// RCS-ID: $Id$
-// Copyright: (c) 1998 Robert Roebling,
+// Copyright: (c) 1998 Robert Roebling,
// 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
-wxMemoryDC::wxMemoryDC() : wxDC()
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
+ : wxDC()
{
- m_isMemDC = TRUE;
+ m_isMemDC = true;
+
+ if ( bitmap.IsOk() )
+ SelectObject(bitmap);
}
wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) : wxDC()
{
- m_isMemDC = TRUE;
+ m_isMemDC = true;
}
wxMemoryDC::~wxMemoryDC()