Click here to Skip to main content
13,559,479 members
Rate this:
Please Sign up or sign in to 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.

Posted 31-Dec-12 1:15am
Updated 31-Dec-12 1:19am
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
Please Sign up or sign in to vote.

Solution 3


Have a look here:
Guide to WIN32 Paint for beginners[^]
Albert Holguin 31-Dec-12 13:24pm
Looks like a good article to start off with... 5
Thomas D [ProgramFOX] 1-Jan-13 5:11am
Thank you!
Rate this: bad
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.
Albert Holguin 31-Dec-12 13:25pm
GDI is definitely a good starting point... specially for simple graphics.
Rate this: bad
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.
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 !
Rate this: bad
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

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 | Cookies | Terms of Service
Web01-2016 | 2.8.180527.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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