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

Thread: Focus problem

  1. #1
    Join Date
    Mar 1999
    Posts
    1

    Focus problem



    I am having a problem with window focus. When a screen saver pops up or another window on the PC(multiple windows opned at once)has the main focus the return to the main C++ application has some of the screen missing which causes the program to crash because the info on the screen is being constantly updated. My main question is how do I know when the focus of the screen has changed? I can do a re-size of the screen by changing it with the mouse and get the missing info back but I don't know when to issue the re-size from with in the application.

  2. #2
    Join Date
    Apr 1999
    Posts
    191

    CWnd::OnKillFocus()



    Sounds like a job for CWnd::OnKillFocus().

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