Click to See Complete Forum and Search --> : Loosing program focus!


Magnus Ohlin
May 4th, 1999, 06:36 AM
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

ilgar
May 11th, 1999, 12:53 AM
CWnd::BringWindowToTop() or

CWnd::SetForegroundWindow()


Thanks,
Ilgar Mashayev

Magnus Ohlin
May 11th, 1999, 06:28 AM
Hiya!

Thanks for your help but it doesn't work.

/Magnus