wxMemoryDC MemDc;
MemDc.SelectObject(*pMemoryBitmap);
- MemDc.BeginDrawing();
// Draw background.
MemDc.SetBrush(wxBrush(GetBackgroundColour(), wxSOLID));
}
}
- MemDc.EndDrawing();
-
// Blit the memory dc to screen.
Dc.Blit(0, 0, Width, Height, &MemDc, 0, 0, wxCOPY);
delete pMemoryBitmap;