thank you for response. I tried to prevent restricting for SetForegroundWindow (as MSDN tells) but I can't do it :-( If it is interesting for you, I solved my problem, using SetWindowPos(&CWnd::wndTopMost...); and then SetWindowPos(&CWnd::wndNoTopMost...); Mike. :-)