/***********************************************************************/ /* Copyright (C) 2002 Definitive Solutions, Inc. All Rights Reserved. */ /* THIS COMPUTER PROGRAM IS PROPRIETARY AND CONFIDENTIAL TO DEFINITIVE */ /* SOLUTIONS, INC. AND ITS LICENSORS AND CONTAINS TRADE SECRETS OF */ /* DEFINITIVE SOLUTIONS, INC. THAT ARE PROVIDED PURSUANT TO A WRITTEN */ /* AGREEMENT CONTAINING RESTRICTIONS ON USE AND DISCLOSURE. ANY USE, */ /* REPRODUCTION, OR TRANSFER EXCEPT AS PROVIDED IN SUCH AGREEMENT */ /* IS STRICTLY PROHIBITED. */ /***********************************************************************/ // Author: Keith Rule// Email: keithr@europa.com // Copyright 1996-1997, Keith Rule// // You may freely use or modify this code provided this // Copyright is included in all derived versions. #if ! defined(MYMEMORYDCH_06BAB1D1_271E_11d6_8AC7_00B0D0529ED2_INCLUDED) #define MYMEMORYDCH_06BAB1D1_271E_11d6_8AC7_00B0D0529ED2_INCLUDED #pragma once ///////////////////////////////////////////////////////////////////////////// // MyMemoryDC // Declare the class depending on this file is in an EXE project or a DLL one. class #ifdef _WINDLL AFX_EXT_CLASS #endif MyMemoryDC : public CDC { // Construction. public: MyMemoryDC(CDC* pDC, const CRect& rcBounds); virtual ~MyMemoryDC(); // Declared but not defined. private: MyMemoryDC(const MyMemoryDC& rhs); MyMemoryDC& operator=(const MyMemoryDC& rhs); // Data. private: CBitmap m_bitmap; // Offscreen bitmap CBitmap* m_pOldBitmap; // bitmap originally found in MyMemoryDC CDC* m_pDC; // Saves CDC passed in constructor CRect m_rc; // Rectangle of drawing area. bool m_bMemDC; // True if CDC really is a Memory DC }; #endif // MYMEMORYDCH_06BAB1D1_271E_11d6_8AC7_00B0D0529ED2_INCLUDED