Fixing bug 29027 - now we restore an iconified window when we send focus to it. r=law.

This commit is contained in:
bryner%uiuc.edu 2000-06-13 01:16:31 +00:00
Родитель f065e6ca36
Коммит 1ff8d73116
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -1459,6 +1459,12 @@ NS_METHOD nsWindow::SetFocus(void)
}
if (mWnd) {
// Uniconify, if necessary
HWND toplevelWnd = mWnd;
while (::GetParent(toplevelWnd))
toplevelWnd = ::GetParent(toplevelWnd);
if (::IsIconic(toplevelWnd))
::OpenIcon(toplevelWnd);
::SetFocus(mWnd);
}
return NS_OK;