153 m_orig(SelectObject(hdc, h))
Context scope DC object restorer.
Definition: GDI.h:141
virtual ~dc_selector()
Restores original object.
Definition: GDI.h:162
HGDIOBJ m_orig
Original object handle.
Definition: GDI.h:180
HGDIOBJ status() const noexcept
Return result of SelectObject() call.
Definition: GDI.h:173
HDC m_hdc
A handle to the device context.
Definition: GDI.h:179
dc_selector(_In_ HDC hdc, _In_ HGDIOBJ h) noexcept
Selects an object into the specified device context (DC). The new object replaces the previous object...
Definition: GDI.h:151
Device context wrapper class.
Definition: GDI.h:54
void free_internal() noexcept override
Deletes the specified device context (DC).
Definition: GDI.h:75
virtual ~dc()
Deletes the specified device context (DC).
Definition: GDI.h:63
Windows HGDIOBJ wrapper class.
Definition: GDI.h:23
void free_internal() noexcept override
Closes an open object handle.
Definition: GDI.h:44
virtual ~gdi_handle()
Closes an open object handle.
Definition: GDI.h:32
Base abstract template class to support generic object handle keeping.
Definition: Common.h:580
HDC handle_type
Datatype of the object handle this template class handles.
Definition: Common.h:585
handle_type m_h
Object handle.
Definition: Common.h:833
Device context wrapper class.
Definition: GDI.h:85
HWND m_hwnd
Window handle.
Definition: GDI.h:134
void free_internal() noexcept override
Releases a device context (DC), freeing it for use by other applications.
Definition: GDI.h:128
virtual ~window_dc()
Releases a device context (DC), freeing it for use by other applications.
Definition: GDI.h:116
#define WINSTD_NONCOPYABLE(C)
Declares a class as non-copyable.
Definition: Common.h:53
#define WINSTD_NONMOVABLE(C)
Declares a class as non-movable.
Definition: Common.h:61
#define WINSTD_HANDLE_IMPL(C, INVAL)
Implements default constructors and operators to prevent their auto-generation by compiler.
Definition: Common.h:138
static const T invalid
Invalid handle value.
Definition: Common.h:590