Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Blocking call to ShellExecuteEx? Pin
Mark Salsbery27-Dec-06 14:00
Mark Salsbery27-Dec-06 14:00 
AnswerRe: Blocking call to ShellExecuteEx? Pin
Johan Pretorius27-Dec-06 14:06
Johan Pretorius27-Dec-06 14:06 
AnswerUse CreateProcess instead. Re: Blocking call to ShellExecuteEx? [modified] Pin
devvvy27-Dec-06 14:31
devvvy27-Dec-06 14:31 
QuestionHelp with a waveIn, waveOut program Pin
Commickey27-Dec-06 11:38
Commickey27-Dec-06 11:38 
AnswerRe: Help with a waveIn, waveOut program Pin
Mark Salsbery27-Dec-06 12:10
Mark Salsbery27-Dec-06 12:10 
GeneralRe: Help with a waveIn, waveOut program Pin
Commickey27-Dec-06 13:07
Commickey27-Dec-06 13:07 
AnswerRe: Help with a waveIn, waveOut program Pin
Hamid_RT27-Dec-06 18:09
Hamid_RT27-Dec-06 18:09 
QuestionHow to pause processing? Pin
Dustin Henry27-Dec-06 10:20
Dustin Henry27-Dec-06 10:20 
I have an application with a main processing loop ( while(true){} ). When the application is running normally it eats up about 2% of the CPU. Whenever focus is taken away from the application window however, the CPU usage jumps to about 50%. This also happens when I comment out all of my code in the loop except the windows message queue processing and my app jumps from 60fps to about 2000fps.

My question is, how do I 'pause' processing when focus is taken away, but still have the abilty to get window messages so I know when focus is given back?

Thanks in advance,
Dustin
AnswerRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 11:18
Johan Pretorius27-Dec-06 11:18 
GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 11:51
Dustin Henry27-Dec-06 11:51 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:07
Johan Pretorius27-Dec-06 12:07 
GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:38
Dustin Henry27-Dec-06 12:38 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:42
Johan Pretorius27-Dec-06 12:42 
QuestionRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:13
Mark Salsbery27-Dec-06 12:13 
AnswerRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:36
Dustin Henry27-Dec-06 12:36 
GeneralRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:52
Mark Salsbery27-Dec-06 12:52 
AnswerRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:40
Johan Pretorius27-Dec-06 12:40 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:43
Johan Pretorius27-Dec-06 12:43 
GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:51
Dustin Henry27-Dec-06 12:51 
GeneralRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:56
Mark Salsbery27-Dec-06 12:56 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:57
Johan Pretorius27-Dec-06 12:57 
AnswerRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 13:01
Mark Salsbery27-Dec-06 13:01 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 13:16
Johan Pretorius27-Dec-06 13:16 
GeneralRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 13:22
Mark Salsbery27-Dec-06 13:22 
QuestionON_UPDATE_COMMAND_UI never get called Pin
chiheb zak27-Dec-06 8:53
chiheb zak27-Dec-06 8:53 

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.