foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields
CDCBrush

#include <GDIUtils.h>

+ Inheritance diagram for CDCBrush:

Public Member Functions

 CDCBrush (HDC dc, COLORREF color) throw ()
 
 ~CDCBrush () throw ()
 

Data Fields

PFC_CLASS_NOT_COPYABLE_EX(CDCBrush) private COLORREF m_oldCol
 

Detailed Description

Definition at line 124 of file GDIUtils.h.

Constructor & Destructor Documentation

CDCBrush::CDCBrush ( HDC  dc,
COLORREF  color 
)
throw (
)
inline

Definition at line 126 of file GDIUtils.h.

126  {
127  m_dc = dc;
128  m_oldCol = m_dc.SetDCBrushColor(color);
129  m_hBrush = (HBRUSH) GetStockObject(DC_BRUSH);
130  }
PFC_CLASS_NOT_COPYABLE_EX(CDCBrush) private COLORREF m_oldCol
Definition: GDIUtils.h:134
CDCBrush::~CDCBrush ( )
throw (
)
inline

Definition at line 131 of file GDIUtils.h.

131  {
132  m_dc.SetDCBrushColor(m_oldCol);
133  }
PFC_CLASS_NOT_COPYABLE_EX(CDCBrush) private COLORREF m_oldCol
Definition: GDIUtils.h:134

Field Documentation

PFC_CLASS_NOT_COPYABLE_EX (CDCBrush) private COLORREF CDCBrush::m_oldCol

Definition at line 134 of file GDIUtils.h.


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