|
-
August 29th, 2011, 11:43 AM
#5
Re: GetDC not calculating toolbar offset
 Originally Posted by Skizmo
Why do you need to get a DC ? You can only draw in the OnPaint, and in it you need to declare
to create a DC. Drawing outside the OnPaint is simply the wrong way to do it.
That seems to be the case.
In essence, then, the 'correct' way to draw in MFC is ALWAYS on Invalidate(TRUE), yes?
Though, my OnDraw just calls UpdateDialog(pDC);
Never draw outside of UpdateDialog?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|