Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Repaointing the Window Pin
Luc Pattyn26-Dec-08 13:20
sitebuilderLuc Pattyn26-Dec-08 13:20 
GeneralRe: Repainting the Window Pin
BobInNJ27-Dec-08 10:31
BobInNJ27-Dec-08 10:31 
GeneralRe: Repainting the Window Pin
Luc Pattyn27-Dec-08 11:30
sitebuilderLuc Pattyn27-Dec-08 11:30 
GeneralRe: Repainting the Window Pin
BobInNJ27-Dec-08 13:49
BobInNJ27-Dec-08 13:49 
GeneralRe: Repainting the Window Pin
Luc Pattyn27-Dec-08 15:15
sitebuilderLuc Pattyn27-Dec-08 15:15 
GeneralRe: Repainting the Window Pin
BobInNJ28-Dec-08 6:43
BobInNJ28-Dec-08 6:43 
GeneralRe: Repainting the Window Pin
Luc Pattyn28-Dec-08 14:15
sitebuilderLuc Pattyn28-Dec-08 14:15 
GeneralRe: Repainting the Window Pin
BobInNJ29-Dec-08 6:58
BobInNJ29-Dec-08 6:58 
Luc,

I put the Sleep calls in the thread that did the computation, not in the GUI thread. The idea was
to give the GUI thread a chance to catch up if it was behind. I also tried setting top and left to 0
with 30000 for bottom and right as you suggested. That did not help either. The methods InvalidateRect and UpdateWindow are void so there are no return values to check.

However, I now believe I understand what the problem was. I was defining a local variable of
type CPaintDC. When the constructor for CPaintDC is called, it was clearing the invalid region. In addition, sitting bottom past the bottom of the screen results in Windows setting it to the bottom of the screen. Now, I can solve my problem of my screen flickering.

Luc, thanks for your help in this matter.

Bob
GeneralRe: Repainting the Window Pin
Luc Pattyn29-Dec-08 7:13
sitebuilderLuc Pattyn29-Dec-08 7:13 
GeneralRe: Repainting the Window Pin
BobInNJ29-Dec-08 9:08
BobInNJ29-Dec-08 9:08 
GeneralRe: Repainting the Window Pin
Luc Pattyn29-Dec-08 9:55
sitebuilderLuc Pattyn29-Dec-08 9:55 
GeneralRe: Repainting the Window Pin
BobInNJ29-Dec-08 11:28
BobInNJ29-Dec-08 11:28 
GeneralRe: Repainting the Window Pin
Luc Pattyn29-Dec-08 14:58
sitebuilderLuc Pattyn29-Dec-08 14:58 
GeneralRe: Repainting the Window Pin
BobInNJ30-Dec-08 4:37
BobInNJ30-Dec-08 4:37 
AnswerRe: Repainting the Window [modified] Pin
BobInNJ29-Dec-08 9:03
BobInNJ29-Dec-08 9:03 
Questioncan you help me a recursion project with c++? Pin
silversword8626-Dec-08 8:58
silversword8626-Dec-08 8:58 
GeneralRe: can you help me a recursion project with c++? Pin
Luc Pattyn26-Dec-08 9:20
sitebuilderLuc Pattyn26-Dec-08 9:20 
Questionhtml res files don't seem to work anymore. Pin
Jim Crafton26-Dec-08 4:55
Jim Crafton26-Dec-08 4:55 
AnswerRe: html res files don't seem to work anymore. Pin
Richard Andrew x6426-Dec-08 5:10
professionalRichard Andrew x6426-Dec-08 5:10 
GeneralRe: html res files don't seem to work anymore. Pin
Jim Crafton26-Dec-08 5:13
Jim Crafton26-Dec-08 5:13 
GeneralRe: html res files don't seem to work anymore. Pin
Richard Andrew x6426-Dec-08 5:15
professionalRichard Andrew x6426-Dec-08 5:15 
GeneralRe: html res files don't seem to work anymore. Pin
Jim Crafton26-Dec-08 5:27
Jim Crafton26-Dec-08 5:27 
GeneralRe: html res files don't seem to work anymore. Pin
Richard Andrew x6426-Dec-08 5:30
professionalRichard Andrew x6426-Dec-08 5:30 
GeneralRe: html res files don't seem to work anymore. Pin
Richard Andrew x6426-Dec-08 5:47
professionalRichard Andrew x6426-Dec-08 5:47 
QuestionHow to get a desktop screenshot without my application window? [modified] Pin
midix26-Dec-08 3:08
midix26-Dec-08 3:08 

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.