template <typename H, auto DeleterFunc> struct GDIDeleter
{ using pointer = H; voidoperator()(H h) { DeleterFunc(h); }
};
template <typename H, auto DeleterFunc> using ScopedGDI = std::unique_ptr<H, GDIDeleter<H, DeleterFunc>>;
using ScopedHBRUSH = ScopedGDI<HBRUSH, DeleteBrush>; using ScopedHRGN = ScopedGDI<HRGN, DeleteRegion>; using ScopedHDC = ScopedGDI<HDC, DeleteDC>; using ScopedHPEN = ScopedGDI<HPEN, DeletePen>; using ScopedHFONT = ScopedGDI<HFONT, DeleteFont>; using ScopedHBITMAP = ScopedGDI<HBITMAP, DeleteBitmap>;
using ScopedSelectedHPEN = ScopedSelectedGDI<ScopedHPEN, SelectPen>; using ScopedSelectedHFONT = ScopedSelectedGDI<ScopedHFONT, SelectFont>; using ScopedSelectedHBRUSH = ScopedSelectedGDI<ScopedHBRUSH, SelectBrush>;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.