| 1001010.com |
one zero zero one zero one zero dot com |
Sure you have. Well, I'm not talking about "feature trimming" - I'm refering to code written on the suposition that there was no other way to work around a daunting problem. Only to find out if you "set the proper flag" it would never had been an issue.
A while back I had a problem with a resizeable owner draw dialog - all the controls would flicker like crazy when you resized the window.
The problem was that the painting of the background was Over the controls, and then the controls would redraw themselves - thus creating flicker.
My solution was to change the way I was painting the background. Instead of BitBlt'ing the background, I would efectivly RegionBitBlt around the controls so that they would never need to redraw themseleves. I remeber being happy with myself & moved on with the project.
Fast forward to the current day when I learn that all I had to do was change the window style to clip children. d'Oh!
On the plus side, I now have a handy RgnBlt funtion ;-)