Click here to Skip to main content
15,904,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCheck Application Pin
Tjie Pouw22-Sep-07 18:21
Tjie Pouw22-Sep-07 18:21 
AnswerRe: Check Application Pin
Hamed Musavi22-Sep-07 22:17
Hamed Musavi22-Sep-07 22:17 
JokeRe: Check Application Pin
Sreedhar DV26-Sep-07 0:17
Sreedhar DV26-Sep-07 0:17 
JokeRe: Check Application Pin
Hamed Musavi26-Sep-07 1:20
Hamed Musavi26-Sep-07 1:20 
Questionmodeless dialog & threads Pin
Peter Weyzen22-Sep-07 17:31
Peter Weyzen22-Sep-07 17:31 
QuestionRe: modeless dialog & threads Pin
Hamed Musavi22-Sep-07 23:31
Hamed Musavi22-Sep-07 23:31 
AnswerRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 8:24
Mark Salsbery23-Sep-07 8:24 
QuestionRe: modeless dialog & threads Pin
David Crow23-Sep-07 9:06
David Crow23-Sep-07 9:06 
AnswerRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 9:24
Mark Salsbery23-Sep-07 9:24 
GeneralRe: modeless dialog & threads Pin
Peter Weyzen23-Sep-07 10:18
Peter Weyzen23-Sep-07 10:18 
GeneralRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 10:32
Mark Salsbery23-Sep-07 10:32 
GeneralThinking is overrated. Pin
Stephen Hewitt23-Sep-07 15:07
Stephen Hewitt23-Sep-07 15:07 
GeneralRe: Thinking is overrated. Pin
Mark Salsbery23-Sep-07 15:33
Mark Salsbery23-Sep-07 15:33 
AnswerRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 9:43
Mark Salsbery23-Sep-07 9:43 
GeneralRe: modeless dialog & threads Pin
David Crow23-Sep-07 10:10
David Crow23-Sep-07 10:10 
GeneralRe: modeless dialog & threads Pin
Mark Salsbery23-Sep-07 10:27
Mark Salsbery23-Sep-07 10:27 
GeneralRe: modeless dialog & threads Pin
Peter Weyzen23-Sep-07 10:15
Peter Weyzen23-Sep-07 10:15 
QuestionUnable to specify CESetup DLL in VS2005 Smart Device CAB project - Pin
yudhisthira22-Sep-07 15:33
yudhisthira22-Sep-07 15:33 
QuestionOpenRAID challenge - little off topic Pin
Vaclav_22-Sep-07 6:56
Vaclav_22-Sep-07 6:56 
AnswerRe: OpenRAID challenge - little off topic Pin
carrivick22-Sep-07 19:29
carrivick22-Sep-07 19:29 
GeneralRe: OpenRAID challenge - little off topic Pin
Vaclav_23-Sep-07 4:35
Vaclav_23-Sep-07 4:35 
Questiongraphics program Pin
Sai Yasodharan22-Sep-07 6:18
Sai Yasodharan22-Sep-07 6:18 
AnswerRe: graphics program Pin
nbugalia22-Sep-07 7:00
nbugalia22-Sep-07 7:00 
QuestionRe: graphics program Pin
Sai Yasodharan23-Sep-07 5:33
Sai Yasodharan23-Sep-07 5:33 
AnswerRe: graphics program Pin
bob1697223-Sep-07 7:16
bob1697223-Sep-07 7:16 
a console application can only achieve graphics in the most rudimentary way.

Historically, in the DOS days, most of us resorted to using the upper OEM character set or drawing very crude primitives like circles and images by arranging characters in the 80x25 character matrix so they resembled something.

It was hardly adequate and mostly wasteful except for the user interfaces that were early examples of the modern day user interface, particularly menus, scrollbars, and dialogs. Products as Turbo C++ and tools like "edit" were examples of good utilizations of these "graphics" techniques.

If you are in search of how to create a graphics application using C++/MFC then I would recommend starting a new doc/view application in Visual C++ and deriving the view class from CView or CScrollView and experimenting with placing some drawing primitives like line, circles, and rectangles in the CYourDerivedView::OnDraw() method.

In MSDN, look up "MoveTo" and "LineTo" for lines, "Rectangle" for a basic rectangle, and "Ellipse" for ellipses and circles.

After you see how these work, you will want to research "Mapping Modes" for scaling, Pens and Brushes to get different drawing effects, then move on to text by looking up "DrawText".

Hope that helps get you started.

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.