|
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
|
|
|
|
|
actually I did , but I have not successfully find what I need ,
I need tutorials for a very beginner person, tutorials for starting a win32 project from the .net framework(the c++ projects in the .net visual studio)
thanks
There is always something to learn
modified on Wednesday, April 23, 2008 2:44 PM
|
|
|
|
|
Knowledgestudent wrote: actually I did , but I have not successfully find what I need ,
I need tutorials for a very beginner person,
Did you use Visual Studio to create a DLL project? One of the options is to create such a project with a few exported symbols (e.g., one class, one function, one variable). I changed the function to look like:
ADD_API int fnAdd( int a, int b )
{
return a + b;
} Use VS again to create a plain Win32 application that utilizies your DLL. You can either implicitly or explicitly link to it.
I called the exported function like:
FNADD fnAdd = (FNADD) GetProcAddress(hLibrary, "fnAdd");
if (fnAdd != NULL)
int sum = (*fnAdd)(6, 22);
"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 appologise for asking non programming question here, but i fail to find any better place. can anybody here suggest any good book on data structure with c++ to start with. i have a basic knowledge of c++.
Thanks and regards
amit
|
|
|
|
|
The ones currently on my shelf are:
Data Structures by Esakov and Weiss
Algorithms in C++ by Sedgewick
Data Structures and Algorithms in C by Weiss
Introduction to Algorithms by Cormen, Leiserson, and Rivest
Data Structures Using C by Tenebaum, Langsam, and Augenstein
"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
|
|
|
|
|
Google.com by Google
led mike
|
|
|
|
|
And just how in the world did you go about finding that one?
"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
|
|
|
|
|
thanks for reply. actually I am using Data Structure and Algorithms in C++ by Adam Drozdek. Is it the right one to start of.
Regards
amit
modified on Thursday, April 24, 2008 2:38 AM
|
|
|
|
|
in which college are you studying??
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
astalavita baby :
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|