MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / ScopedBkColor

Method ScopedBkColor

Win32Lib/Win32Lib.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71ScopedBkColor::ScopedBkColor(HDC hdc, COLORREF color) :
72 m_hdc(hdc), m_color(::SetBkColor(hdc, color))
73{
74 if (m_color == CLR_INVALID)
75 ThrowLastError("SetBkColor");
76}
77
78ScopedBkColor::~ScopedBkColor()
79{

Callers

nothing calls this directly

Calls 1

ThrowLastErrorFunction · 0.85

Tested by

no test coverage detected