www.pudn.com > 1223456.rar > MemDC.h


// MemDC.h: interface for the CMemDC class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MEMDC_H__A68B97E6_DDB4_4B4F_8A18_429844C3659C__INCLUDED_) 
#define AFX_MEMDC_H__A68B97E6_DDB4_4B4F_8A18_429844C3659C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CMemDC : public CDC   
{ 
public: 
	CMemDC(CDC* pDC); 
	CMemDC* operator->(){return this;} 
	operator CMemDC*(){return this;} 
	virtual ~CMemDC(); 
private: 
	CBitmap	m_bitmap; 
	CBitmap*	m_pOldBitmap; 
	CDC*	m_pDC; 
	CRect	m_rect; 
	BOOL	m_bMemDC; 
 
}; 
 
#endif // !defined(AFX_MEMDC_H__A68B97E6_DDB4_4B4F_8A18_429844C3659C__INCLUDED_)