mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-27 05:04:14 -04:00
[ui] display marquee operations on taskbar
This commit is contained in:
parent
a9681c0c2a
commit
77b0d1d366
2 changed files with 11 additions and 9 deletions
10
src/rufus.c
10
src/rufus.c
|
@ -2760,12 +2760,14 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA
|
|||
case UM_PROGRESS_INIT:
|
||||
isMarquee = (wParam == PBS_MARQUEE);
|
||||
SendMessage(hProgress, PBM_SETSTATE, (WPARAM)PBST_NORMAL, 0);
|
||||
if (isMarquee)
|
||||
if (isMarquee) {
|
||||
SendMessage(hProgress, PBM_SETMARQUEE, TRUE, 0);
|
||||
else
|
||||
SetTaskbarProgressState(TASKBAR_INDETERMINATE);
|
||||
} else {
|
||||
SendMessage(hProgress, PBM_SETPOS, 0, 0);
|
||||
SetTaskbarProgressState(TASKBAR_NORMAL);
|
||||
SetTaskbarProgressValue(0, MAX_PROGRESS);
|
||||
SetTaskbarProgressState(TASKBAR_NORMAL);
|
||||
SetTaskbarProgressValue(0, MAX_PROGRESS);
|
||||
}
|
||||
break;
|
||||
|
||||
case UM_PROGRESS_EXIT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue