Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using
OS: Windows 7
Comp: Visual C++ 6.0
Programming language: C++

My target are:
>> Creating rectangle, ellipse, arc, circle and coloring them
>> Moving element around the drawing field.
>> Erasing
>> Undo the previous action

Help me on:
>> How to create such project on visual c++ 6.0 compiler
>> Please provide me a sample code to study on it.
>> if there is any documentation on code or project you have, then provide me to understand better.

Thank you for your intention to help me.

Sincererly
Pervez
Posted
Updated 31-Dec-12 1:19am
v2
Comments
E.F. Nijboer 31-Dec-12 8:06am    
You have all the questions, your internet connection is up and running, so why not try to have a go with google? You can ask specific questions you have along the way here, but not ask for help on how to create a project and all the follow up steps with it.

Hi,

Have a look here:
Guide to WIN32 Paint for beginners[^]
 
Share this answer
 
Comments
Albert Holguin 31-Dec-12 13:24pm    
Looks like a good article to start off with... 5
Thomas Daniels 1-Jan-13 5:11am    
Thank you!
Implementing a such program is not as easy as it seems. To Answer your question directly we need to know what are the API's that you are using. I guess you are using Win32 API or MFC.

If you're using one of those API's, you should know about :
~ GDI or GDI+ (or any other Graphics Library such as DirectX or OpenGL, But GDI is a good choice in small programs)

~ Handling messages properly (Mouse, Paint)
~ Undo Redo techniques, see here.
~ Handling Bitmaps

In GDI or GDI+ the key to develop a such program is about handling Memory-DCs and Bitmaps together with other Drawing functions.
 
Share this answer
 
Comments
Albert Holguin 31-Dec-12 13:25pm    
GDI is definitely a good starting point... specially for simple graphics.
I think, I need to learn more about API's and I am going to study win32. I hope, I will be able to complete my project and can ask more specific question here.

Thank you all.
 
Share this answer
 
Comments
Captain Price 31-Dec-12 23:47pm    
If you want to learn Win32 programming. Then buy the book : Programming Windows by Charles Petzold 5th edition. That'll be the best !
You may want to take a look at: SCRIBBLE Sample: MFC MDI Drawing Application[^]

Best regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900