HDC_scope Class Reference
[Windows Window Library]

#include <winstl/window/hdc_scope.hpp>

List of all members.


Detailed Description

Scopes the device context of a window.

Public Types

Types
typedef HDC_scope class_type
typedef HDC(WINAPI * HDC_get_fn_type )(HWND)

Public Member Functions

Construction
 HDC_scope (HDC hdc, HWND hwnd)
 Constructor.
 HDC_scope (HWND hwnd, HDC_get_fn_type pfn)
 Constructor.
 ~HDC_scope () throw ()
 Releases the device context associated with the window.
Accessors
HDC get_hdc () const
 The device context.
HWND get_hwnd () const
 The window handle.

Constructor & Destructor Documentation

HDC_scope ( HDC  hdc,
HWND  hwnd 
) [inline]

Constructor.

Parameters:
hdc The device context
hwnd The window associated with the device context

References WINSTL_ASSERT.

HDC_scope ( HWND  hwnd,
HDC_get_fn_type  pfn 
) [inline]

Constructor.

Parameters:
hwnd The window associated with the device context
pfn The function that will retrive the device context from the given window

References WINSTL_ASSERT.

~HDC_scope (  )  throw () [inline]

Releases the device context associated with the window.


Member Function Documentation

HDC get_hdc (  )  const [inline]

The device context.

HWND get_hwnd (  )  const [inline]

The window handle.


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

Generated on Thu Jun 10 08:59:41 2010 for STLSoft by  doxygen 1.5.6