#include <winstl/window/hdc_scope.hpp>
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. |
HDC_scope | ( | HDC | hdc, | |
HWND | hwnd | |||
) | [inline] |
Constructor.
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.
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.
HDC get_hdc | ( | ) | const [inline] |
The device context.
HWND get_hwnd | ( | ) | const [inline] |
The window handle.