Originally posted by: Jimmy B
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.
Take care.
In general, do not call this function; the destructor will do it for you. - msdn
ReplyOriginally posted by: Alex F
Thanks.
It takes a short time to learn how to use it. I used this control in my CodeProject article:
http://www.codeproject.com/cpp/sseintro.asp
Originally posted by: LUka Frodnik
I've tried to add new plot, I've found some places in a code there its done for 1st plot, but I still see nothing changed
Originally posted by: Lori Hughes
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.
Kind regards,
Lori
Originally posted by: Xue sir
How to change the font of the axis's label?
thanks!!
Originally posted by: blankbock
I find such c++ class for quite a time, and now I find it!
thanks!
Originally posted by: Daniel Henry
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.
Originally posted by: Katarina
Is it possible to view point on the lines plotted in the graph?
/Katarina
ReplyOriginally posted by: Looi
hello, your demo really help but how can i draw two lines in the 2-d chart?
let's say my problem is like
for (int i=0; i<=m_Pegun; i++)
{
n=0.5*P*i*i; //1st line
n=-0.5*i*i; // 2nd line? or i should use n2?
m_Chart2d.SetXYValue(i,n,i,0);
}
thanx!
i really need the solution fast
Originally posted by: Jeff D. Hamann
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?
Reply