2002-12-06 21:39:04 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2002 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2002-12-06 21:39:04 +00:00
|
|
|
*/
|
2013-03-16 20:08:56 +00:00
|
|
|
/*
|
2002-12-06 21:39:04 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS text-mode setup
|
2015-09-13 16:40:36 +00:00
|
|
|
* FILE: base/setup/usetup/progress.h
|
2002-12-06 21:39:04 +00:00
|
|
|
* PURPOSE: Partition list functions
|
|
|
|
* PROGRAMMER: Eric Kohl
|
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2002-12-06 21:39:04 +00:00
|
|
|
|
|
|
|
typedef struct _PROGRESS
|
|
|
|
{
|
2014-05-12 16:14:19 +00:00
|
|
|
SHORT Left;
|
|
|
|
SHORT Top;
|
|
|
|
SHORT Right;
|
|
|
|
SHORT Bottom;
|
|
|
|
SHORT TextTop;
|
|
|
|
SHORT TextRight;
|
2002-12-06 21:39:04 +00:00
|
|
|
|
2014-05-12 16:14:19 +00:00
|
|
|
SHORT Width;
|
2002-12-06 21:39:04 +00:00
|
|
|
|
2014-05-12 16:14:19 +00:00
|
|
|
ULONG Percent;
|
|
|
|
SHORT Pos;
|
2002-12-06 21:39:04 +00:00
|
|
|
|
2014-05-12 16:14:19 +00:00
|
|
|
ULONG StepCount;
|
|
|
|
ULONG CurrentStep;
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2014-05-12 16:14:19 +00:00
|
|
|
BOOLEAN Double;
|
|
|
|
CHAR *Text;
|
2004-02-23 11:58:27 +00:00
|
|
|
} PROGRESSBAR, *PPROGRESSBAR;
|
2002-12-06 21:39:04 +00:00
|
|
|
|
|
|
|
/* FUNCTIONS ****************************************************************/
|
|
|
|
|
2004-02-23 11:58:27 +00:00
|
|
|
PPROGRESSBAR
|
2014-05-12 16:14:19 +00:00
|
|
|
CreateProgressBar(
|
|
|
|
SHORT Left,
|
|
|
|
SHORT Top,
|
|
|
|
SHORT Right,
|
|
|
|
SHORT Bottom,
|
|
|
|
SHORT TextTop,
|
|
|
|
SHORT TextRight,
|
|
|
|
BOOLEAN DoubleEdge,
|
|
|
|
CHAR *Text);
|
2002-12-06 21:39:04 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 16:14:19 +00:00
|
|
|
DestroyProgressBar(
|
|
|
|
PPROGRESSBAR Bar);
|
2002-12-06 21:39:04 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 16:14:19 +00:00
|
|
|
ProgressSetStepCount(
|
|
|
|
PPROGRESSBAR Bar,
|
|
|
|
ULONG StepCount);
|
2002-12-06 21:39:04 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 16:14:19 +00:00
|
|
|
ProgressNextStep(
|
|
|
|
PPROGRESSBAR Bar);
|
2004-02-23 11:58:27 +00:00
|
|
|
|
|
|
|
VOID
|
2014-05-12 16:14:19 +00:00
|
|
|
ProgressSetStep(
|
|
|
|
PPROGRESSBAR Bar,
|
|
|
|
ULONG Step);
|
2002-12-06 21:39:04 +00:00
|
|
|
|
2003-02-27 14:42:43 +00:00
|
|
|
/* EOF */
|