//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: MemoryDC.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of MemoryDC.h //---------------------------------------------------------------------------- #ifndef __MEMORY__DC__H__ #define __MEMORY__DC__H__ #if _MSC_VER > 1000 #pragma once #endif class CMemoryDC : public CDC { public: CMemoryDC(); virtual ~CMemoryDC(); public: BOOL Create( HBITMAP hBitmap, BOOL bCopy = TRUE ); BOOL Create( int cx, int cy, COLORREF color = RGB(0,0,0) ); public: virtual BOOL DeleteDC( ); const CSize& GetSize() const { return m_Size; } private: CSize m_Size; CBitmap m_Bitmap; CBitmap*m_pBitmap; }; #endif