Click here to Skip to main content
12,350,831 members (27,935 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ C
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 31-Dec-12 1:15am
Edited 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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Hi,

Have a look here:
Guide to WIN32 Paint for beginners[^]
  Permalink  
Comments
Albert Holguin 31-Dec-12 13:24pm
   
Looks like a good article to start off with... 5
ProgramFOX 1-Jan-13 5:11am
   
Thank you!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Albert Holguin 31-Dec-12 13:25pm
   
GDI is definitely a good starting point... specially for simple graphics.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

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.
  Permalink  
Comments
Pravinda Amarathunge 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 !
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

You may want to take a look at: SCRIBBLE Sample: MFC MDI Drawing Application[^]

Best regards
Espen Harlinn
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100