|
tnl1025 wrote: draw a bar chart
You would be having data in your data structure. You can plot one of them on the X-Axis and the other one on Y-Axis. In general time would be on the X-Axis and value would be on the Y-Axis. A value on Y-Axis would be corresponding to a value on X-Axis.
Here is an example for bar chart.[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can also take a look at the link in my sig. In the last release, I added support for a bar series.
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
They are many differents ,what is the main differents?
|
|
|
|
|
EVC++ is meant for embedded development and VC++ is meant for desktop development.
-Saurabh
|
|
|
|
|
now VC8 (visual studio 2005) and further next version are also used to develop embedded program.
Mukesh Kumar
Software Engineer
|
|
|
|
|
Yes that is true but you have to realize that since MS has merged EVC with VC comparing them makes sense only for older versions. Last version of EVC was 4.0 and it was released in 2003 i.e. before VC 2005.
-Saurabh
|
|
|
|
|
I realized...
Mukesh Kumar
Software Engineer
|
|
|
|
|
And why is your post voted down?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
In my program I take appropriate values from the user and then click a button to draw a circle on the same dialog box. However if I change the values and then again click the button to draw, my previous circle is erased and the new one is drawn. What I want is for the previous circles to stay there...
|
|
|
|
|
You cannot rely on previous drawn circles: you have to store all input values (using arrays, for instance) and draw all the circles each time the OnPaint event handler is called.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Get Ivor Horton's "Beginning Visual C++" (For Versions 6.0, 2005, or 2008)
They all have excellent examples on drawing (and maintaining) graphics primitives using MFC.
Too many goodies in that book to pass it up. At least if your serious about using OnDraw() in a view class.
|
|
|
|
|
You can save your previous draw and when you need to it you can show it.
|
|
|
|
|
Yes. Create a bitmap and draw your circles to that.
In your OnPaint routine blit from the bitmap to the screen.
Adrian
|
|
|
|
|
Of course its true but you must reply to komalwaseem not me.
|
|
|
|
|
Hi everybody,I'm a new member in this forum,and I want to start studying VC++/MFC,Can you please tell me the best ebook of VC++/MFC for the beginner,thank so much!!!
|
|
|
|
|
th87 wrote: I want to start studying VC++/MFC
The Internet is a vast sea of knowledge just waiting to be explored.
th87 wrote: Can you please tell me the best ebook of VC++/MFC for the beginner
Have you tried Googling for such?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I used "Teach Yourself Visual C++ 6 in 21 days" by "SAMS", its old, but still quite good, and exists in PDF format if you perfer that.
//Johannes
|
|
|
|
|
If you are a beginner in C++ my advice is to start with some C++ beginner books before you start looking at VC++ and Windows programming.
led mike
|
|
|
|
|
Why does everyone want everything for free ?
Like someone else said, learn C++ first, THEN MFC. My first book was 'teach yourself C++ in 24 hours' and while it didn't make me a professional programmer, it was a great *first* book.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Do you know already C++ ?
|
|
|
|
|
you can try the following books
1)Programming Windows With MFC by Jeff Prosise
2)Programming Windows by Charles Petzold
hope that helps.....
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
|
|
Have you considered searching MSDN or CodeProject? Examples are plentiful.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|