Click to See Complete Forum and Search --> : Determining When an Application Goes into the Background


April 21st, 1999, 05:16 PM
I am developing a graphics application embedded in MFC. I need to know when the application is in the background to stop the simulation loop otherwise it eats up all the CPU cycles. I have tried using OnKillFocus but that doesn't appear to be the right windows message. Does anyone know how to determine when my application has gone into the background? Please help. Thanks.

Chad Goolbis
goolbis@cs.montana.edu

Walter I An
April 22nd, 1999, 12:18 AM
I believe U need to override WM_WINDOWPOSCHANGED.

Good luck and hope U can help others, too. :)

Walter

sally
April 22nd, 1999, 03:08 AM
OnActivate() ??

sally

Sally
April 22nd, 1999, 03:08 AM
OnActivate() ??

sally