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

#include <win32_misc.h>

Public Member Functions

 SetTextColorScope (HDC dc, COLORREF col) throw ()
 
 ~SetTextColorScope () throw ()
 

Data Fields

PFC_CLASS_NOT_COPYABLE_EX(SetTextColorScope) private COLORREF m_oldCol
 

Detailed Description

Definition at line 159 of file win32_misc.h.

Constructor & Destructor Documentation

SetTextColorScope::SetTextColorScope ( HDC  dc,
COLORREF  col 
)
throw (
)
inline

Definition at line 161 of file win32_misc.h.

161  : m_dc(dc) {
162  m_oldCol = SetTextColor(dc,col);
163  }
PFC_CLASS_NOT_COPYABLE_EX(SetTextColorScope) private COLORREF m_oldCol
Definition: win32_misc.h:167
SetTextColorScope::~SetTextColorScope ( )
throw (
)
inline

Definition at line 164 of file win32_misc.h.

164  {
165  SetTextColor(m_dc,m_oldCol);
166  }
PFC_CLASS_NOT_COPYABLE_EX(SetTextColorScope) private COLORREF m_oldCol
Definition: win32_misc.h:167

Field Documentation

PFC_CLASS_NOT_COPYABLE_EX (SetTextColorScope) private COLORREF SetTextColorScope::m_oldCol

Definition at line 167 of file win32_misc.h.


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