Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The purpose of the thread class Pin
led mike15-May-07 7:04
led mike15-May-07 7:04 
AnswerRe: C++ Multiple inheritance Pin
led mike14-May-07 8:01
led mike14-May-07 8:01 
QuestionNetwork Machines Pin
rw10414-May-07 4:33
rw10414-May-07 4:33 
AnswerRe: Network Machines Pin
led mike14-May-07 4:47
led mike14-May-07 4:47 
GeneralRe: Network Machines Pin
rw10414-May-07 5:01
rw10414-May-07 5:01 
QuestionRe: Network Machines Pin
David Crow14-May-07 4:53
David Crow14-May-07 4:53 
AnswerRe: Network Machines Pin
rw10414-May-07 5:00
rw10414-May-07 5:00 
QuestionSimple GDI program Pin
Dustin Henry14-May-07 4:28
Dustin Henry14-May-07 4:28 
I am trying to write a simple GDI program that displays a countdown timer(MM:SS:hh). I am just using the WM_PAINT message to display the updated time and calling InvalidateRect() in my main loop. This however causes the screen to flash as I am clearing the screen before I redraw the text.
FillRect(hdc, &rPos, (HBRUSH)GetStockObject(BLACK_BRUSH));
DrawText(hdc, stTime, stTime.GetLength(), &rPos, DT_CENTER | DT_WORDBREAK);
Any suggestions on how I can stop the text from flashing while still being able to update at hundreths of a second?

Thanks, Dustin
AnswerRe: Simple GDI program Pin
Arman S.14-May-07 5:40
Arman S.14-May-07 5:40 
GeneralRe: Simple GDI program Pin
Dustin Henry14-May-07 6:20
Dustin Henry14-May-07 6:20 
GeneralRe: Simple GDI program Pin
Arman S.14-May-07 6:57
Arman S.14-May-07 6:57 
AnswerRe: Simple GDI program [modified] Pin
Mark Salsbery14-May-07 5:56
Mark Salsbery14-May-07 5:56 
GeneralRe: Simple GDI program Pin
Dustin Henry14-May-07 6:17
Dustin Henry14-May-07 6:17 
GeneralRe: Simple GDI program Pin
Michael Dunn14-May-07 8:04
sitebuilderMichael Dunn14-May-07 8:04 
GeneralRe: Simple GDI program Pin
Mark Salsbery14-May-07 8:20
Mark Salsbery14-May-07 8:20 
Questionread xml with dataset Pin
lavy288314-May-07 4:18
lavy288314-May-07 4:18 
QuestionRe: read xml with dataset Pin
David Crow14-May-07 4:20
David Crow14-May-07 4:20 
AnswerRe: read xml with dataset Pin
lavy288314-May-07 4:38
lavy288314-May-07 4:38 
QuestionRe: read xml with dataset Pin
David Crow14-May-07 4:49
David Crow14-May-07 4:49 
AnswerRe: read xml with dataset Pin
lavy288314-May-07 5:00
lavy288314-May-07 5:00 
QuestionRe: read xml with dataset Pin
David Crow14-May-07 5:04
David Crow14-May-07 5:04 
GeneralRe: read xml with dataset Pin
led mike14-May-07 5:06
led mike14-May-07 5:06 
GeneralRe: read xml with dataset Pin
Hamid_RT14-May-07 6:02
Hamid_RT14-May-07 6:02 
Questiondll inside the exe Pin
Russell'14-May-07 4:13
Russell'14-May-07 4:13 
AnswerRe: dll inside the exe Pin
David Crow14-May-07 4:19
David Crow14-May-07 4:19 

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.