omgui::win32::ScopedDC Class Reference

#include <omgui/win32/win.h>

List of all members.


Detailed Description

This simple class represents an HDC that will be released with a call to ReleaseDC in the destructor.

Public Member Functions

 operator HDC () const
 ScopedDC (HWND hwnd, HDC dc)
 ~ScopedDC ()

Private Member Functions

ScopedDCoperator= (const ScopedDC &)
 ScopedDC (const ScopedDC &)

Private Attributes

HDC m_dc
HWND m_hwnd

Constructor & Destructor Documentation

omgui::win32::ScopedDC::ScopedDC ( HWND  hwnd,
HDC  dc 
) [inline]

omgui::win32::ScopedDC::~ScopedDC (  )  [inline]

omgui::win32::ScopedDC::ScopedDC ( const ScopedDC  )  [private]


Member Function Documentation

omgui::win32::ScopedDC::operator HDC (  )  const [inline]

ScopedDC& omgui::win32::ScopedDC::operator= ( const ScopedDC  )  [private]


Member Data Documentation


doxygen SourceForge.net Logo