From: Jacek S. <arn...@gm...> - 2007-10-09 14:30:04
|
Ok. I'm guessing the long term solution would be to remove the canvas from the pen object/constructor, then pens could be created once and selected into the dc on demand...it would be nice to automagically handle the resetting of the previous pen (or other gdi object) in some nice way as well after using a specific pen, something like a scoped_selector which selects a pen , saves the old pen (which is returned when setting the new pen) and the resets old pen when the selector goes out of scope... /J poy wrote: > solving the colors problem the easy way; pens are created and destroyed > each time they are used. > > poy |