/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2008.06.23 * ³» ¿ë : * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cBuffDC { public: cBuffDC( CWnd* wnd, int width, int height, COLORREF backColor, bool transparent = true ); virtual ~cBuffDC(); void Draw( CDC* dc, int destX, int destY, int destWidth, int destHeight ); void Rotate( float degree ); void Rotate( float degree, const CPoint& origin ); CDC* GetDC(); protected: CWnd* mWnd; int mWidth; int mHeight; COLORREF mBackColor; bool mTransparent; CBitmap mMemBitmap; CBitmap* mOldBitmap; CDC mMemDC; }; inline CDC* cBuffDC::GetDC() { return &mMemDC; }