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

#include <win-objects.h>

Public Member Functions

 DCStateScope (HDC p_dc) throw ()
 
 ~DCStateScope () throw ()
 

Private Attributes

const HDC m_dc
 
int m_state
 

Detailed Description

Definition at line 219 of file win-objects.h.

Constructor & Destructor Documentation

DCStateScope::DCStateScope ( HDC  p_dc)
throw (
)
inline

Definition at line 221 of file win-objects.h.

221  : m_dc(p_dc) {
222  m_state = SaveDC(m_dc);
223  }
const HDC m_dc
Definition: win-objects.h:228
DCStateScope::~DCStateScope ( )
throw (
)
inline

Definition at line 224 of file win-objects.h.

224  {
225  RestoreDC(m_dc,m_state);
226  }
const HDC m_dc
Definition: win-objects.h:228

Field Documentation

const HDC DCStateScope::m_dc
private

Definition at line 228 of file win-objects.h.

int DCStateScope::m_state
private

Definition at line 229 of file win-objects.h.


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