]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcmemory.cpp
Add wxRichTextModuleInit
[wxWidgets.git] / src / msw / dcmemory.cpp
index e68fe93b107ec32a52df9784bbac9fc2020f70ad..36ff844b21afd6fe69fceee841d2af95641094bc 100644 (file)
@@ -47,11 +47,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
 // wxMemoryDC
 // ----------------------------------------------------------------------------
 
-wxMemoryDC::wxMemoryDC()
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
 {
     CreateCompatible(NULL);
 
     Init();
+    
+    if ( bitmap.IsOk() )
+        SelectObject(bitmap);
 }
 
 wxMemoryDC::wxMemoryDC(wxDC *dc)