195 m_orig(SelectObject(hdc, h))
Context scope DC object restorer.
Definition GDI.h:183
dc_selector(HDC hdc, HGDIOBJ h) noexcept
Selects an object into the specified device context (DC). The new object replaces the previous object...
Definition GDI.h:193
virtual ~dc_selector()
Restores original object.
Definition GDI.h:203
HGDIOBJ m_orig
Original object handle.
Definition GDI.h:221
HGDIOBJ status() const noexcept
Return result of SelectObject() call.
Definition GDI.h:214
HDC m_hdc
A handle to the device context.
Definition GDI.h:220
Device context wrapper class.
Definition GDI.h:84
void free_internal() noexcept override
Deletes the specified device context (DC).
Definition GDI.h:105
virtual ~dc()
Deletes the specified device context (DC).
Definition GDI.h:93
Windows HGDIOBJ wrapper class.
Definition GDI.h:22
void free_internal() noexcept override
Closes an open object handle.
Definition GDI.h:43
virtual ~gdi_handle()
Closes an open object handle.
Definition GDI.h:31
Base abstract template class to support generic object handle keeping.
Definition Common.h:874
handle() noexcept
Definition Common.h:889
handle_type m_h
Definition Common.h:1126
HDC handle_type
Definition Common.h:879
Windows HICON wrapper class.
Definition GDI.h:53
void free_internal() noexcept override
Closes an open object handle.
Definition GDI.h:74
virtual ~icon()
Closes an open object handle.
Definition GDI.h:62
Device context wrapper class.
Definition GDI.h:115
HWND m_hwnd
Window handle.
Definition GDI.h:176
window_dc(handle_type h, HWND hwnd) noexcept
Initializes a device context from existing data.
Definition GDI.h:127
void free_internal() noexcept override
Releases a device context (DC), freeing it for use by other applications.
Definition GDI.h:170
virtual ~window_dc()
Releases a device context (DC), freeing it for use by other applications.
Definition GDI.h:158
window_dc() noexcept
Initializes an empty device context.
Definition GDI.h:120
window_dc & operator=(window_dc &&h) noexcept
Copy an existing device context.
Definition GDI.h:143
window_dc(window_dc &&h) noexcept
Move an existing device context.
Definition GDI.h:135
#define WINSTD_NONCOPYABLE(C)
Declares a class as non-copyable.
Definition Common.h:67
#define WINSTD_NONMOVABLE(C)
Declares a class as non-movable.
Definition Common.h:75
#define WINSTD_HANDLE_IMPL(C, T, INVAL)
Implements default constructors and operators to prevent their auto-generation by compiler.
Definition Common.h:164
static const T invalid
Definition Common.h:884