2023-03-06 15:40:07 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "com.hpp"
|
|
|
|
|
2023-11-10 16:52:20 -05:00
|
|
|
namespace utilities
|
2023-03-06 15:40:07 -05:00
|
|
|
{
|
|
|
|
class progress_ui
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
progress_ui();
|
|
|
|
~progress_ui();
|
|
|
|
|
|
|
|
void show(bool marquee, HWND parent = nullptr) const;
|
|
|
|
|
|
|
|
void set_progress(size_t current, size_t max) const;
|
|
|
|
void set_line(int line, const std::string& text) const;
|
|
|
|
void set_title(const std::string& title) const;
|
|
|
|
|
|
|
|
bool is_cancelled() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
CComPtr<IProgressDialog> dialog_{};
|
|
|
|
};
|
|
|
|
}
|