Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOnDraw vs OnPaint Pin
msr_codeproject1-Aug-09 18:09
msr_codeproject1-Aug-09 18:09 
AnswerRe: OnDraw vs OnPaint Pin
«_Superman_»1-Aug-09 19:06
professional«_Superman_»1-Aug-09 19:06 
OnPaint is the message handler for WM_PAINT.
Here you do any drawing on your window.

OnDraw is a virtual function for all view classes.
OnDraw is called by the OnPaint handler for each view to do its on-screen drawing.

OnDraw will also be called by the MFC framwork for printing in respose to WM_PRINT.

This is why OnDraw has a CDC parameter which specifies the DC on which to do the drawing.
This could be the DC of either the screen or the printer depending on where the drawing needs to be done.

«_Superman
I love work. It gives me something to do between weekends.

Questioni have an idea of doing c++ editor for my final year project ?? is it worth can i proceed?? Pin
laxram1-Aug-09 16:07
laxram1-Aug-09 16:07 
AnswerRe: i have an idea of doing c++ editor for my final year project ?? is it worth can i proceed?? Pin
Richard Andrew x641-Aug-09 16:24
professionalRichard Andrew x641-Aug-09 16:24 
AnswerRe: i have an idea of doing c++ editor for my final year project ?? is it worth can i proceed?? Pin
Bacon Ultimate Cheeseburger1-Aug-09 17:45
Bacon Ultimate Cheeseburger1-Aug-09 17:45 
GeneralRe: i have an idea of doing c++ editor for my final year project ?? is it worth can i proceed?? Pin
laxram2-Aug-09 2:25
laxram2-Aug-09 2:25 
GeneralRe: i have an idea of doing c++ editor for my final year project ?? is it worth can i proceed? Pin
Sauce!2-Aug-09 4:48
Sauce!2-Aug-09 4:48 
GeneralRe: i have an idea of doing c++ editor for my final year project ?? is it worth can i proceed? Pin
Bacon Ultimate Cheeseburger2-Aug-09 16:03
Bacon Ultimate Cheeseburger2-Aug-09 16:03 
GeneralRe: i have an idea of doing c++ editor for my final year project ?? is it worth can i proceed? Pin
Sauce!2-Aug-09 18:29
Sauce!2-Aug-09 18:29 
QuestionCDialog OnCreate vs OnInitDialog Pin
ForNow1-Aug-09 15:40
ForNow1-Aug-09 15:40 
AnswerRe: CDialog OnCreate vs OnInitDialog Pin
Bacon Ultimate Cheeseburger1-Aug-09 17:12
Bacon Ultimate Cheeseburger1-Aug-09 17:12 
AnswerRe: CDialog OnCreate vs OnInitDialog Pin
«_Superman_»1-Aug-09 17:57
professional«_Superman_»1-Aug-09 17:57 
GeneralRe: CDialog OnCreate vs OnInitDialog Pin
ForNow1-Aug-09 18:53
ForNow1-Aug-09 18:53 
Question[Message Deleted] Pin
lifeandtimes1-Aug-09 12:22
lifeandtimes1-Aug-09 12:22 
AnswerRe: Write to and read from file C Pin
Richard Andrew x641-Aug-09 12:51
professionalRichard Andrew x641-Aug-09 12:51 
Question[Message Deleted] Pin
Andre Smalling1-Aug-09 8:19
Andre Smalling1-Aug-09 8:19 
AnswerRe: cannot get program to work can someone tell me what I am doing wrong Pin
Richard Andrew x641-Aug-09 13:03
professionalRichard Andrew x641-Aug-09 13:03 
Answer[Message Deleted] Pin
Andre Smalling1-Aug-09 19:24
Andre Smalling1-Aug-09 19:24 
GeneralRe: cannot get program to work can someone tell me what I am doing wrong Pin
Richard Andrew x642-Aug-09 2:09
professionalRichard Andrew x642-Aug-09 2:09 
General[Message Deleted] Pin
Andre Smalling2-Aug-09 7:45
Andre Smalling2-Aug-09 7:45 
GeneralRe: cannot get program to work can someone tell me what I am doing wrong Pin
Richard Andrew x642-Aug-09 7:50
professionalRichard Andrew x642-Aug-09 7:50 
General[Message Deleted] Pin
Andre Smalling2-Aug-09 7:57
Andre Smalling2-Aug-09 7:57 
GeneralRe: cannot get program to work can someone tell me what I am doing wrong Pin
Richard Andrew x642-Aug-09 8:02
professionalRichard Andrew x642-Aug-09 8:02 
GeneralRe: cannot get program to work can someone tell me what I am doing wrong Pin
Rozis2-Aug-09 8:34
Rozis2-Aug-09 8:34 
Questionhow use CDialog in Win32 API? Pin
bsh01281-Aug-09 7:58
bsh01281-Aug-09 7:58 

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.