Index: src/ch/StatusDlg.cpp =================================================================== diff -u -N -red1beefb06bbe87cf779b6a97db502fea5f2e109 -rd04caed42cbc16ffd508f173ca5f92d9512cfc69 --- src/ch/StatusDlg.cpp (.../StatusDlg.cpp) (revision ed1beefb06bbe87cf779b6a97db502fea5f2e109) +++ src/ch/StatusDlg.cpp (.../StatusDlg.cpp) (revision d04caed42cbc16ffd508f173ca5f92d9512cfc69) @@ -712,6 +712,9 @@ // apply state of the resume, cancel, ... buttons ApplyButtonsState(); + + // update taskbar progress + UpdateTaskBarProgress(); } void CStatusDlg::OnSelectionChanged(NMHDR* /*pNMHDR*/, LRESULT* /*pResult*/) @@ -1247,3 +1250,16 @@ return strTitleText; } + +void CStatusDlg::UpdateTaskBarProgress() const +{ + if(m_spTaskMgrStats->GetRunningTasks() != 0) + { + unsigned long long ullProgress = (unsigned long long)(m_spTaskMgrStats->GetCombinedProgress() * 100.0); + + m_taskBarProgress.SetState(m_hWnd, TBPF_NORMAL); + m_taskBarProgress.SetPosition(m_hWnd, ullProgress, 100); + } + else + m_taskBarProgress.SetState(m_hWnd, TBPF_NOPROGRESS); +}