mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-19 17:35:10 -04:00
[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:
parent
94851dec7d
commit
5e448f9523
4 changed files with 28 additions and 7 deletions
17
src/stdlg.c
17
src/stdlg.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue