Skip to content

ui::TaskbarProgress

Header: winui/ui/WindowShell.hpp.

The taskbar button's progress bar: Window::taskbar_progress() is a Property of it, written by the app and shown on the taskbar on every change.

Example:

window.taskbar_progress() = ui::TaskbarProgress{ui::TaskbarProgressState::Normal, 0.4};   // 40 %
window.taskbar_progress() = ui::TaskbarProgress{ui::TaskbarProgressState::Error, 0.4};    // turn it red
window.taskbar_progress() = ui::TaskbarProgress{};                                     // remove it

Field Type Default
state TaskbarProgressState TaskbarProgressState::None Whether a bar shows and in which color; None hides it.
value double 0.0 Completion in [0, 1].