|
WinStd
Windows Win32 API using Standard C++
|
Context scope DC object restorer. More...
#include <WinStd/GDI.h>
Public Member Functions | |
| dc_selector (HDC hdc, HGDIOBJ h) noexcept | |
| Selects an object into the specified device context (DC). The new object replaces the previous object of the same type. | |
| virtual | ~dc_selector () |
| Restores original object. | |
| HGDIOBJ | status () const noexcept |
Return result of SelectObject() call. | |
Protected Attributes | |
| HDC | m_hdc |
| A handle to the device context. | |
| HGDIOBJ | m_orig |
| Original object handle. | |
Context scope DC object restorer.
|
inlinenoexcept |
Selects an object into the specified device context (DC). The new object replaces the previous object of the same type.
|
inlinevirtual |
Restores original object.
|
inlinenoexcept |
Return result of SelectObject() call.