mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:15:52 +00:00
[USETUP] Progress-bar: Add support for displaying a custom progress text.
This commit is contained in:
parent
3a33de0fb1
commit
e9ba3a8ebc
2 changed files with 81 additions and 29 deletions
|
@ -26,6 +26,15 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
struct _PROGRESSBAR;
|
||||
|
||||
typedef BOOLEAN
|
||||
(NTAPI *PUPDATE_PROGRESS)(
|
||||
IN struct _PROGRESSBAR* Bar,
|
||||
IN BOOLEAN ComputeProgress,
|
||||
OUT PSTR Buffer,
|
||||
IN SIZE_T cchBufferSize);
|
||||
|
||||
typedef struct _PROGRESSBAR
|
||||
{
|
||||
/* Border and text positions */
|
||||
|
@ -43,13 +52,15 @@ typedef struct _PROGRESSBAR
|
|||
ULONG CurrentStep;
|
||||
|
||||
/* User-specific displayed bar progress/position */
|
||||
ULONG Percent;
|
||||
PUPDATE_PROGRESS UpdateProgressProc;
|
||||
ULONG Progress;
|
||||
SHORT Pos;
|
||||
|
||||
/* Static progress bar cues */
|
||||
BOOLEAN DoubleEdge;
|
||||
SHORT ProgressColour;
|
||||
PCSTR DescriptionText;
|
||||
PCSTR ProgressFormatText;
|
||||
} PROGRESSBAR, *PPROGRESSBAR;
|
||||
|
||||
|
||||
|
@ -65,7 +76,9 @@ CreateProgressBarEx(
|
|||
IN SHORT TextRight,
|
||||
IN BOOLEAN DoubleEdge,
|
||||
IN SHORT ProgressColour,
|
||||
IN PCSTR DescriptionText OPTIONAL);
|
||||
IN PCSTR DescriptionText OPTIONAL,
|
||||
IN PCSTR ProgressFormatText OPTIONAL,
|
||||
IN PUPDATE_PROGRESS UpdateProgressProc OPTIONAL);
|
||||
|
||||
PPROGRESSBAR
|
||||
CreateProgressBar(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue