CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    19

    Loosing program focus!

    Hiya!

    I have a SDI project which creates a thread, in that thread I show a dialog using DoModal(), it works fine but when I exit the dialog my program don't have the focus anymore. Why is that and how do I correct it?

    Thanks
    Magnus


  2. #2
    Join Date
    May 1999
    Posts
    24

    Re: Loosing program focus!

    CWnd::BringWindowToTop() or

    CWnd::SetForegroundWindow()


    Thanks,
    Ilgar Mashayev

  3. #3
    Join Date
    Mar 1999
    Posts
    19

    Re: Loosing program focus!

    Hiya!

    Thanks for your help but it doesn't work.

    /Magnus


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