CMemDC Class Reference
Inheritance diagram for CMemDC:

Collaboration diagram for CMemDC:

Detailed Description
CMemDC - This class implements a memory Device Context.Copyright 1996-1997, Keith Rule
You may freely use or modify this code provided this Copyright is included in all derived versions.
- History
- 10/3/97 Fixed scrolling bug. Added print support.
- 25/2/98 Fixed minor assertion bug
Public Member Functions | |
| CMemDC (CDC *pDC) | |
| Constructor: set up the memory DC. | |
| ~CMemDC () | |
| Destructor: copy the contents of the mem DC to the original DC. | |
| CMemDC * | operator-> () |
| Allow usage as a pointer. | |
| operator CMemDC * () | |
| Allow usage as a pointer. | |
Private Attributes | |
| CBitmap | m_bitmap |
| Offscreen bitmap. | |
| CBitmap * | m_pOldBitmap |
| bitmap originally found in CMemDC | |
| CDC * | m_pDC |
| Saves CDC passed in constructor. | |
| CRect | m_rect |
| Rectangle of drawing area. | |
| BOOL | m_bMemDC |
| TRUE if CDC really is a Memory DC. | |
Constructor & Destructor Documentation
| CMemDC | ( | CDC * | pDC | ) | [inline] |
Constructor: set up the memory DC.
| ~CMemDC | ( | ) | [inline] |
Destructor: copy the contents of the mem DC to the original DC.
Member Function Documentation
| CMemDC* operator-> | ( | ) | [inline] |
Allow usage as a pointer.
| operator CMemDC * | ( | ) | [inline] |
Allow usage as a pointer.
Member Data Documentation
CBitmap m_bitmap [private] |
Offscreen bitmap.
CBitmap* m_pOldBitmap [private] |
bitmap originally found in CMemDC
CDC* m_pDC [private] |
Saves CDC passed in constructor.
CRect m_rect [private] |
Rectangle of drawing area.
BOOL m_bMemDC [private] |
TRUE if CDC really is a Memory DC.



