Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC 7.0 and 98 Pin
Nick Hodapp6-Jan-04 4:25
sitebuilderNick Hodapp6-Jan-04 4:25 
GeneralRe: MFC 7.0 and 98 Pin
Anonymous6-Jan-04 6:20
Anonymous6-Jan-04 6:20 
GeneralMap URL address to IP address Pin
Anonymous6-Jan-04 0:16
Anonymous6-Jan-04 0:16 
GeneralRe: Map URL address to IP address Pin
Imran Farooqui6-Jan-04 1:23
Imran Farooqui6-Jan-04 1:23 
GeneralAdd to favorites Pin
Anonymous5-Jan-04 23:44
Anonymous5-Jan-04 23:44 
GeneralRe: Add to favorites Pin
ohadp6-Jan-04 1:11
ohadp6-Jan-04 1:11 
GeneralDeveloping a Basic Graphics Package Pin
Eldalie5-Jan-04 23:30
Eldalie5-Jan-04 23:30 
GeneralRe: Developing a Basic Graphics Package Pin
ohadp6-Jan-04 1:19
ohadp6-Jan-04 1:19 
What you have here is more of a Class FrameWork to support what you've mentioned.

If you try to seperate the problems, you need:

1. A Class FrameWork to declare and support your Shapes. This you seem to have.
2. Something that will allow you to perform drawing of such object.

What I suggest is that you find yourself a simple MFC application that shows how to draw rectangles, elipses, etc onto a window using MFC's CDC.

Then what you'll have left is to connect the two. Each Shape's Draw() method will receive a CDC* variable , which it will use to draw itself onto (using CDC calls).

Here's CDC's documentation over at MSDN

What's most important is that you find a simple MC framework, which I bet you can find on CodeProject.
GeneralRe: Developing a Basic Graphics Package Pin
Eldalie6-Jan-04 18:10
Eldalie6-Jan-04 18:10 
GeneralDevelopi Pin
Eldalie5-Jan-04 23:30
Eldalie5-Jan-04 23:30 
GeneralGetting key presses from MFC Pin
Anonymous5-Jan-04 23:29
Anonymous5-Jan-04 23:29 
GeneralRe: Getting key presses from MFC Pin
volkan8785-Jan-04 23:50
volkan8785-Jan-04 23:50 
GeneralRe: Getting key presses from MFC Pin
Anonymous6-Jan-04 7:10
Anonymous6-Jan-04 7:10 
GeneralHelp in MDI / VC++ needed Pin
Ruchit Sharma5-Jan-04 23:27
Ruchit Sharma5-Jan-04 23:27 
GeneralRe: Help in MDI / VC++ needed Pin
2249176-Jan-04 1:50
2249176-Jan-04 1:50 
GeneralCFont class Pin
TolTol5-Jan-04 23:26
TolTol5-Jan-04 23:26 
GeneralRe: CFont class Pin
Monty26-Jan-04 1:11
Monty26-Jan-04 1:11 
GeneralRe: CFont class Pin
TolTol6-Jan-04 4:02
TolTol6-Jan-04 4:02 
GeneralProgress control using GDI+ Pin
Steve Messer5-Jan-04 21:31
Steve Messer5-Jan-04 21:31 
Generalaquiring the size of a dialog resource Pin
luddet5-Jan-04 18:59
luddet5-Jan-04 18:59 
GeneralRe: aquiring the size of a dialog resource Pin
abc8765-Jan-04 20:30
abc8765-Jan-04 20:30 
GeneralRe: aquiring the size of a dialog resource Pin
Monty25-Jan-04 20:50
Monty25-Jan-04 20:50 
GeneralRe: aquiring the size of a dialog resource Pin
luddet6-Jan-04 6:32
luddet6-Jan-04 6:32 
GeneralSMS through my app Pin
parths5-Jan-04 17:56
parths5-Jan-04 17:56 
GeneralRe: SMS through my app Pin
misha_grewal5-Jan-04 21:14
misha_grewal5-Jan-04 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.