[ui] ensure Rufus MBR is selected for bootmgr

* Also ensure that the log is always displayed in the background of the progress dialog
This commit is contained in:
Pete Batard 2012-05-31 13:05:12 +01:00
parent 94851dec7d
commit 5e448f9523
4 changed files with 28 additions and 7 deletions

View file

@ -923,6 +923,23 @@ void DestroyAllTooltips(void)
}
}
/* Determine if a Windows is being displayed or not */
BOOL IsShown(HWND hDlg)
{
WINDOWPLACEMENT placement;
if (!GetWindowPlacement(hDlg, &placement))
return FALSE;
switch (placement.showCmd) {
case SW_SHOWNORMAL:
case SW_SHOWMAXIMIZED:
case SW_SHOW:
case SW_SHOWDEFAULT:
return TRUE;
default:
return FALSE;
}
}
/* Compute the width of a dropdown list entry */
LONG GetEntryWidth(HWND hDropDown, const char *entry)
{