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

#include <GDIUtils.h>

+ Inheritance diagram for CDCPen:

Public Member Functions

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

Private Attributes

CDCHandle m_dc
 
COLORREF m_oldCol
 

Detailed Description

Definition at line 140 of file GDIUtils.h.

Constructor & Destructor Documentation

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

Definition at line 142 of file GDIUtils.h.

142  {
143  m_dc = dc;
144  m_oldCol = m_dc.SetDCPenColor(color);
145  m_hPen = (HPEN) GetStockObject(DC_PEN);
146  }
CDCHandle m_dc
Definition: GDIUtils.h:151
COLORREF m_oldCol
Definition: GDIUtils.h:152
CDCPen::~CDCPen ( )
throw (
)
inline

Definition at line 147 of file GDIUtils.h.

147  {
148  m_dc.SetDCPenColor(m_oldCol);
149  }
CDCHandle m_dc
Definition: GDIUtils.h:151
COLORREF m_oldCol
Definition: GDIUtils.h:152

Field Documentation

CDCHandle CDCPen::m_dc
private

Definition at line 151 of file GDIUtils.h.

COLORREF CDCPen::m_oldCol
private

Definition at line 152 of file GDIUtils.h.


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