MemDC.h
上传用户:cn05999
上传日期:2020-06-29
资源大小:84k
文件大小:1k
- // 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_)