There is a severe bug in this code which will eventually consume all GDI resources making any screen drawing impossible. If you want to fix this code you will need to clean up after your objects which use the CreateCompatibleDC and CreateCompatibleBitmap calls. It clearly states in the MFC documentation that you must perform a DeleteObject or DeleteDC after using CreateCompatible... calls. If you do not, you will not release the limited GDI resources. Once all resources are consumed, you cannot draw to the screen any longer. Very nasty and hard to debug too.
Posted by alakese
on 09/10/2004 03:46am
In general, do not call this function; the destructor will do it for you. - msdn
I've been searching for an add-in or macro - or something - to assist in creating Waterfall Charts.
I came here and noticed all the help on offer - and thought, way cool!
But then I noticed the Waterfall chart graphic looks like an 'area' chart. The Waterfall charts we use here look more like 'steps' up and down based on the data - wish I could draw what I mean here.
So I wonder - are Waterfall charts different around the world?
It's just got me really confused!
I would really appreciate any assistance you are able to offer.
Thank you so much.
Outstanding chart and instructions. I put this chart into my test progam in 10 minutes. This is my first time doing C++, my background is in embedded systems, so your instructions were a great time saver.
I've tried to place the control (and a great control it is) into a view. I'm having trouble resizing the control MoveWindow() sin't giving the behavior I need. How do you resize the this control in a view?