foobar2000 SDK  2015-01-14
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 216 of file win-objects.h.

Constructor & Destructor Documentation

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

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

218  : m_dc(p_dc) {
219  m_state = SaveDC(m_dc);
220  }
const HDC m_dc
Definition: win-objects.h:225
DCStateScope::~DCStateScope ( )
throw (
)
inline

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

221  {
222  RestoreDC(m_dc,m_state);
223  }
const HDC m_dc
Definition: win-objects.h:225

Field Documentation

const HDC DCStateScope::m_dc
private

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

int DCStateScope::m_state
private

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


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