Click here to Skip to main content
15,789,700 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SetTimer Pin
Chuck O'Toole31-Oct-11 11:06
Chuck O'Toole31-Oct-11 11:06 
GeneralRe: SetTimer Pin
Erudite_Eric31-Oct-11 22:12
Erudite_Eric31-Oct-11 22:12 
GeneralRe: SetTimer Pin
Chuck O'Toole1-Nov-11 3:58
Chuck O'Toole1-Nov-11 3:58 
GeneralRe: SetTimer Pin
Erudite_Eric1-Nov-11 4:07
Erudite_Eric1-Nov-11 4:07 
GeneralRe: SetTimer Pin
Chuck O'Toole1-Nov-11 4:18
Chuck O'Toole1-Nov-11 4:18 
GeneralRe: SetTimer Pin
Erudite_Eric1-Nov-11 4:30
Erudite_Eric1-Nov-11 4:30 
GeneralRe: SetTimer Pin
Chuck O'Toole1-Nov-11 4:44
Chuck O'Toole1-Nov-11 4:44 
GeneralRe: SetTimer Pin
Erudite_Eric1-Nov-11 5:48
Erudite_Eric1-Nov-11 5:48 
Chuck O'Toole wrote:
Clearly Sleep() adds code for *no benefit to this application* whereas
*Peek/translate/dispatch* are *beneficial* to this app.


Sorry, thats total guff. Sleep() will do the job perfectly well with less lines of code and in a more logical fashion.


Chuck O'Toole wrote:
He's not getting back to his message pump *because* he's doing processing in his
GUI handler. Sleep ain't gonna help that because there's no Message Pump to run


You are wrong. Putting a Sleep() in the dispatcher will let the message pump run because it will release the existing call to DispatchMessage().



Chuck O'Toole wrote:
there's no Message Pump to run. Period. He has to provide his own

Of course there is! He wouldnt HAVE a Windows applicaiton without a message pump!
==============================

Nothing to say.

GeneralRe: SetTimer Pin
Chuck O'Toole1-Nov-11 6:11
Chuck O'Toole1-Nov-11 6:11 
GeneralRe: SetTimer Pin
Erudite_Eric1-Nov-11 7:43
Erudite_Eric1-Nov-11 7:43 
GeneralRe: SetTimer Pin
Chuck O'Toole1-Nov-11 8:51
Chuck O'Toole1-Nov-11 8:51 
GeneralRe: MSDN:Preventing Hangs in Windows Applications Pin
Goto_Label_1-Nov-11 10:17
Goto_Label_1-Nov-11 10:17 
GeneralRe: MSDN:Preventing Hangs in Windows Applications Pin
Chuck O'Toole1-Nov-11 11:14
Chuck O'Toole1-Nov-11 11:14 
GeneralRe: MSDN:Preventing Hangs in Windows Applications Pin
Erudite_Eric2-Nov-11 8:02
Erudite_Eric2-Nov-11 8:02 
GeneralRe: MSDN:Preventing Hangs in Windows Applications Pin
Chuck O'Toole2-Nov-11 10:16
Chuck O'Toole2-Nov-11 10:16 
GeneralRe: MSDN:Preventing Hangs in Windows Applications Pin
Erudite_Eric2-Nov-11 12:25
Erudite_Eric2-Nov-11 12:25 
Generale: SetTimer Pin
Erudite_Eric1-Nov-11 23:06
Erudite_Eric1-Nov-11 23:06 
GeneralRe: SetTimer Pin
David Crow1-Nov-11 10:29
David Crow1-Nov-11 10:29 
GeneralRe: SetTimer Pin
Chuck O'Toole1-Nov-11 11:16
Chuck O'Toole1-Nov-11 11:16 
AnswerRe: SetTimer Pin
Mark Salsbery31-Oct-11 13:32
Mark Salsbery31-Oct-11 13:32 
GeneralRe: SetTimer Pin
Chuck O'Toole31-Oct-11 13:59
Chuck O'Toole31-Oct-11 13:59 
GeneralRe: SetTimer Pin
Mark Salsbery31-Oct-11 15:48
Mark Salsbery31-Oct-11 15:48 
GeneralRe: SetTimer Pin
Chuck O'Toole31-Oct-11 16:00
Chuck O'Toole31-Oct-11 16:00 
GeneralRe: SetTimer Pin
Erudite_Eric31-Oct-11 22:08
Erudite_Eric31-Oct-11 22:08 
GeneralRe: Thanks!!! Pin
columbos1492731-Oct-11 22:44
columbos1492731-Oct-11 22:44 

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.