Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDrawing without flicker? Pin
Aidman24-Jun-03 15:25
Aidman24-Jun-03 15:25 
AnswerRe: Drawing without flicker? Pin
John M. Drescher24-Jun-03 15:45
John M. Drescher24-Jun-03 15:45 
AnswerRe: Drawing without flicker? Pin
Dave Bryant24-Jun-03 15:46
Dave Bryant24-Jun-03 15:46 
GeneralRe: Drawing without flicker? Pin
Aidman24-Jun-03 15:51
Aidman24-Jun-03 15:51 
GeneralRe: Drawing without flicker? Pin
John M. Drescher24-Jun-03 15:54
John M. Drescher24-Jun-03 15:54 
GeneralRe: Drawing without flicker? Pin
Aidman24-Jun-03 15:59
Aidman24-Jun-03 15:59 
GeneralRe: Drawing without flicker? Pin
J. Dunlap24-Jun-03 16:12
J. Dunlap24-Jun-03 16:12 
GeneralRe: Drawing without flicker? Pin
Ryan Binns24-Jun-03 16:13
Ryan Binns24-Jun-03 16:13 
Aidman wrote:
But shouldn't it be possible to use ValidateRect or some other function to prevent an graphic area from updating to the screen?

Yes, but the part you don't validate will still flicker if you draw over the same part multiple times or if you don't handle WM_ERASEBKGND to prevent the background being erased.

It's almost always better to use a memory DC, combined with selective invalidating like you suggested.

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: Drawing without flicker? Pin
John M. Drescher24-Jun-03 16:19
John M. Drescher24-Jun-03 16:19 
GeneralRe: Drawing without flicker? Pin
Ryan Binns24-Jun-03 16:21
Ryan Binns24-Jun-03 16:21 
Generalplay avi file and install codec for it Pin
Mohsen Saad24-Jun-03 15:17
Mohsen Saad24-Jun-03 15:17 
GeneralHelp!! CHTMLView inside CDialog Pin
crewchill24-Jun-03 14:09
crewchill24-Jun-03 14:09 
GeneralRe: Help!! CHTMLView inside CDialog Pin
Joan M24-Jun-03 20:34
professionalJoan M24-Jun-03 20:34 
GeneralRe: Help!! CHTMLView inside CDialog Pin
crewchill24-Jun-03 21:21
crewchill24-Jun-03 21:21 
GeneralLots'o'data... Pin
el davo24-Jun-03 13:25
el davo24-Jun-03 13:25 
GeneralRe: Lots'o'data... Pin
Dave Bryant24-Jun-03 14:34
Dave Bryant24-Jun-03 14:34 
QuestionWhat's wrong with this code? Pin
Jonathan Gilligan24-Jun-03 12:38
Jonathan Gilligan24-Jun-03 12:38 
AnswerRe: What's wrong with this code? Pin
Dave Bryant24-Jun-03 12:43
Dave Bryant24-Jun-03 12:43 
AnswerRe: What's wrong with this code? Pin
ZoogieZork24-Jun-03 14:11
ZoogieZork24-Jun-03 14:11 
GeneralRe: What's wrong with this code? Pin
Jonathan Gilligan25-Jun-03 5:20
Jonathan Gilligan25-Jun-03 5:20 
Generalfopen Pin
cnd1200124-Jun-03 11:11
cnd1200124-Jun-03 11:11 
GeneralRe: fopen Pin
Neville Franks24-Jun-03 11:44
Neville Franks24-Jun-03 11:44 
GeneralRe: fopen Pin
cnd1200125-Jun-03 22:08
cnd1200125-Jun-03 22:08 
GeneralOld School Help Needed Pin
juglugs24-Jun-03 10:44
juglugs24-Jun-03 10:44 
GeneralRe: Old School Help Needed Pin
John R. Shaw24-Jun-03 11:11
John R. Shaw24-Jun-03 11:11 

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.