foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
CBackBufferScope

#include <GDIUtils.h>

+ Inheritance diagram for CBackBufferScope:

Public Member Functions

 CBackBufferScope (HDC hDC, HDC hDCBB, const CRect &rcPaint)
 
 ~CBackBufferScope ()
 

Private Attributes

CRgn m_clipRgnOld
 
CDCHandle m_dcOrig
 
const CRect m_rcPaint
 

Detailed Description

Definition at line 215 of file GDIUtils.h.

Constructor & Destructor Documentation

CBackBufferScope::CBackBufferScope ( HDC  hDC,
HDC  hDCBB,
const CRect &  rcPaint 
)
inline

Definition at line 217 of file GDIUtils.h.

217  : CDCHandle(hDCBB), m_dcOrig(hDC), m_rcPaint(rcPaint)
218  {
219  GetClipRgn(m_clipRgnOld);
220  CRgn temp;
221  if (m_dcOrig.GetClipRgn(temp) == 1) {
222  if (m_clipRgnOld != NULL) temp.CombineRgn(m_clipRgnOld,RGN_AND);
223  SelectClipRgn(temp);
224  }
225  IntersectClipRect(rcPaint);
226  }
const CRect m_rcPaint
Definition: GDIUtils.h:234
CDCHandle m_dcOrig
Definition: GDIUtils.h:235
CBackBufferScope::~CBackBufferScope ( )
inline

Definition at line 228 of file GDIUtils.h.

229  {
230  m_dcOrig.BitBlt(m_rcPaint.left,m_rcPaint.top,m_rcPaint.Width(),m_rcPaint.Height(),m_hDC,m_rcPaint.left,m_rcPaint.top,SRCCOPY);
231  SelectClipRgn(m_clipRgnOld);
232  }
const CRect m_rcPaint
Definition: GDIUtils.h:234
CDCHandle m_dcOrig
Definition: GDIUtils.h:235

Field Documentation

CRgn CBackBufferScope::m_clipRgnOld
private

Definition at line 236 of file GDIUtils.h.

CDCHandle CBackBufferScope::m_dcOrig
private

Definition at line 235 of file GDIUtils.h.

const CRect CBackBufferScope::m_rcPaint
private

Definition at line 234 of file GDIUtils.h.


The documentation for this class was generated from the following file: