// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "dcmemory.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#pragma hdrstop
#endif
+#include "wx/dcmemory.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/log.h"
#endif
-#include "wx/dcmemory.h"
-
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
// wxMemoryDC
// ----------------------------------------------------------------------------
-wxMemoryDC::wxMemoryDC()
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
{
+ if ( bitmap.IsOk() )
+ SelectObject(bitmap);
}
wxMemoryDC::wxMemoryDC(wxDC *dc)
void wxMemoryDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
{
}
-