mbo::CMemDC Class Reference

Memory DC wrapper. More...

#include <MboMemDC.h>

Inheritance diagram for mbo::CMemDC:

Inheritance graph
{CDC\n||}
[legend]
Collaboration diagram for mbo::CMemDC:

Collaboration graph
{CDC\n||}
[legend]

List of all members.

Public Member Functions

 CMemDC (CDC *pDC, const CRect &rect, CBitmap &cBitmap, bool bInitBitmap=false)
virtual ~CMemDC ()


Detailed Description

Memory DC wrapper.

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.


Constructor & Destructor Documentation

mbo::CMemDC::CMemDC ( CDC pDC,
const CRect &  rect,
CBitmap &  cBitmap,
bool  bInitBitmap = false 
)

Create DC

Parameters:
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
Note:
Bitmaps may only be initialized once.

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.


The documentation for this class was generated from the following file:
  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by doxygen 1.5.4