Click here to Skip to main content
Rate this: bad
good
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 2:15am
Edited 31-Dec-12 2:19am
v2
Comments
E.F. Nijboer at 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 at 31-Dec-12 13:24pm
   
Looks like a good article to start off with... 5
ProgramFOX at 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 at 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 at 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
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2014
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