30 void create(HWND hParent, HINSTANCE hInstance,
31 int x,
int y,
int width,
int cancelId);
45 void setLabel(
const std::wstring& text);
67 void show(
bool visible);
73 [[nodiscard]]
static constexpr int totalHeight() {
return 76; }
Definition ProgressBar.h:18
HWND m_hBar
Contrôle PROGRESS_CLASS.
Definition ProgressBar.h:78
void showCancelButton()
Affiche le bouton Cancel — à appeler au début du parsing.
Definition ProgressBar.cpp:57
HWND m_hLabel
Contrôle STATIC — label de phase.
Definition ProgressBar.h:77
HWND m_hCancel
Contrôle BUTTON "Annuler".
Definition ProgressBar.h:79
void hideCancelButton()
Masque le bouton Cancel — à appeler à la fin / erreur / annulation.
Definition ProgressBar.cpp:63
void reset()
Réinitialise la barre à 0 et vide le label.
Definition ProgressBar.cpp:69
static constexpr int totalHeight()
Retourne la hauteur totale du widget en pixels. Utile pour positionner les contrôles voisins dans Mai...
Definition ProgressBar.h:73
void show(bool visible)
Show or hide the ProgressBar.
Definition ProgressBar.cpp:37
void setProgress(int value)
Met à jour la progression (0-100).
Definition ProgressBar.cpp:45
void setLabel(const std::wstring &text)
Met à jour le label de phase.
Definition ProgressBar.cpp:51
void create(HWND hParent, HINSTANCE hInstance, int x, int y, int width, int cancelId)
Crée les contrôles Win32 (label, barre, bouton Cancel).
Definition ProgressBar.cpp:10