DCPenChanger is a small helper class for setting a pen on a DC and unsetting it automatically in the destructor, restoring the previous one.
See also
DC.SetPen , DCFontChanger, DCTextColourChanger, DCBrushChanger, DCClipper
DCPenChanger is a small helper class for setting a pen on a DC and unsetting it automatically in the destructor, restoring the previous one.
Possible constructors:
DCPenChanger(dc, pen)
Sets pen on the given dc, storing the old one.
Parameters: |
---|