CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    Determining When an Application Goes into the Background

    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
    [email protected]


  2. #2
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    100

    Re: Determining When an Application Goes into the Background

    I believe U need to override WM_WINDOWPOSCHANGED.

    Good luck and hope U can help others, too.

    Walter


  3. #3
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Determining When an Application Goes into the Background

    OnActivate() ??

    sally


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured