Click here to Skip to main content
16,006,355 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
Christian Graus29-Dec-01 0:33
protectorChristian Graus29-Dec-01 0:33 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 2:01
AnonymousBabe@usa.net29-Dec-01 2:01 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
Christian Graus29-Dec-01 8:55
protectorChristian Graus29-Dec-01 8:55 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 2:09
AnonymousBabe@usa.net29-Dec-01 2:09 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
PJ Arends29-Dec-01 12:38
professionalPJ Arends29-Dec-01 12:38 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 12:57
AnonymousBabe@usa.net29-Dec-01 12:57 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
Tim Smith29-Dec-01 13:52
Tim Smith29-Dec-01 13:52 
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 14:58
AnonymousBabe@usa.net29-Dec-01 14:58 
why do you said the default implementation is good enough?
virtual void OnDraw( CDC* pDC ) = 0;
so we must override this member?

why MFC provide this method? in SDK?
Called by the framework to render an image of the document. The framework calls this function to perform screen display, printing, and print preview, and it passes a different device context in each case. There is no default implementation.

according to MSDN we should add this method into OnPaint, OnPrint, OnPrintPreview ?and Override OnDraw method?

but if i have both OnPaint and OnDraw in my source code, but OnPaint doest call the OnDraw method, the OnDraw Method won't run in anytime.

one is the other who absorbs the thoughts of others
GeneralRe: when will OnDraw function l be EXECUTED? Pin
AnonymousBabe@usa.net29-Dec-01 15:11
AnonymousBabe@usa.net29-Dec-01 15:11 
GeneralASP and spawning notepad Pin
Nish Nishant28-Dec-01 20:34
sitebuilderNish Nishant28-Dec-01 20:34 
GeneralRe: ASP and spawning notepad Pin
Konstantin Vasserman28-Dec-01 22:05
Konstantin Vasserman28-Dec-01 22:05 
GeneralRe: ASP and spawning notepad Pin
Nish Nishant28-Dec-01 22:24
sitebuilderNish Nishant28-Dec-01 22:24 
GeneralResizing of Animation control Pin
v_krishnan28-Dec-01 19:10
v_krishnan28-Dec-01 19:10 
GeneralError Checking Pin
Stephen Caldwell28-Dec-01 18:06
Stephen Caldwell28-Dec-01 18:06 
QuestionHow to make a Picture Transparent Using Memory DC only Pin
clemence28-Dec-01 18:02
clemence28-Dec-01 18:02 
AnswerRe: How to make a Picture Transparent Using Memory DC only Pin
Christian Graus29-Dec-01 0:04
protectorChristian Graus29-Dec-01 0:04 
GeneralTransparency Pin
clemence28-Dec-01 18:00
clemence28-Dec-01 18:00 
GeneralRe: Transparency Pin
Christian Graus29-Dec-01 0:02
protectorChristian Graus29-Dec-01 0:02 
GeneralRe: Transparency Pin
clemence29-Dec-01 17:44
clemence29-Dec-01 17:44 
GeneralRe: Transparency Pin
Christian Graus29-Dec-01 23:05
protectorChristian Graus29-Dec-01 23:05 
GeneralUsing auto_ptr :: C++ Pin
valikac28-Dec-01 16:06
valikac28-Dec-01 16:06 
GeneralRe: Using auto_ptr :: C++ Pin
James R. Twine28-Dec-01 16:52
James R. Twine28-Dec-01 16:52 
GeneralRe: Using auto_ptr :: C++ Pin
valikac28-Dec-01 18:09
valikac28-Dec-01 18:09 
Questionwhen OnDraw will be EXECUTED? Pin
AnonymousBabe@usa.net28-Dec-01 14:29
AnonymousBabe@usa.net28-Dec-01 14:29 
GeneralDouble buffering and GDI+ Pin
Anders Molin28-Dec-01 11:52
professionalAnders Molin28-Dec-01 11:52 

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.