#include <MboMemDC.h>
Public Member Functions | |
CMemDC (CDC *pDC, const CRect &rect, CBitmap &cBitmap, bool bInitBitmap=false) | |
virtual | ~CMemDC () |
This class allows to draw in an area on any DC by providing a dedicated bitmap for that area. This means you provide a DC, an area releative to that DC and a bitmap. The class then creates a memory DC which can be used in all MFC drawing functions/classes.
Definition at line 58 of file MboMemDC.h.
mbo::CMemDC::CMemDC | ( | CDC * | pDC, | |
const CRect & | rect, | |||
CBitmap & | cBitmap, | |||
bool | bInitBitmap = false | |||
) |
Create DC
pDC | original DC (either Window/Screen or Printer) | |
rect | rectangle to draw in | |
cBitmap | reference to bitmap used for actual drawing | |
bInitBitmap | whether to initialize the bitmap |
virtual mbo::CMemDC::~CMemDC | ( | ) | [virtual] |
The destructor actually draws by BitBlt and swaps back the original bitmap into the DC or ensures the DC handle gets freed.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by ![]() |