From 1b97b23d5fb645dc33f1ea4c35d7bd8aee69794d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 26 Oct 2006 15:30:43 +0000 Subject: [PATCH] added wxDCTextColourChanger ctor that allows using the class in the same way other wxDCFooChangers are used git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/dc.h b/include/wx/dc.h index 440c908c3b..d6bfafdc61 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -870,6 +870,11 @@ class WXDLLEXPORT wxDCTextColourChanger public: wxDCTextColourChanger(wxDC& dc) : m_dc(dc), m_colFgOld() { } + wxDCTextColourChanger(wxDC& dc, const wxColour& col) : m_dc(dc) + { + Set(col); + } + ~wxDCTextColourChanger() { if ( m_colFgOld.Ok() ) -- 2.45.2