Dialog *Screen::GetFullscreenDialog(bool fIncludeFading) { Dialog *pDlg; for (Element *pEl = GetFirst(); pEl; pEl = pEl->GetNext()) if (pDlg = pEl->GetDlg()) if (pDlg->IsVisible()) if (pDlg->IsFullscreenDialog()) if (fIncludeFading || !pDlg->IsFading()) return pDlg; return false; }