00001 /***************************************************************************** 00002 * Copyright (c) 2001 - 2008 Marcus Boerger. All rights reserved. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00017 * ========================================================================= */ 00018 00019 /* ------------------------------------------------------------------------ */ 00020 /* Name: MboMemDC.h 00021 * 00022 * Requires: 00023 * - Mbo.h 00024 * - MboMemDC.h / MboMemDC.cpp 00025 */ 00039 /* ------------------------------------------------------------------------ */ 00040 00041 #ifndef _MBOMEMDC_H_ 00042 #define _MBOMEMDC_H_ 00043 00044 //#define USE_MFC // "Enforce" MFC core and standard components 00045 00046 //#include "Mbo.h" 00047 00048 namespace mbo 00049 { 00050 00058 class CMemDC 00059 : public CDC 00060 { 00061 public: 00062 00072 CMemDC( 00073 CDC * pDC, 00074 const CRect & rect, 00075 CBitmap & cBitmap, 00076 bool bInitBitmap = false 00077 ); 00078 00082 virtual ~CMemDC(); 00083 00084 private: 00085 00086 CBitmap & m_cBitmap; 00087 CBitmap * m_pOldBitmap; 00088 CDC * m_pDC; 00089 BOOL m_bMemDC; 00090 CRect m_rect; 00091 }; 00092 00093 }; // namespace Mbo 00094 00095 #endif // _MBOMEMDC_H_
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:08 2008 for MBO-lib by ![]() |