Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ab4438e2
Commit
ab4438e2
authored
Jan 11, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Invalidate the entire progress bar any time it changes.
parent
dc2cdf13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
26 deletions
+3
-26
progress.c
dlls/comctl32/progress.c
+3
-26
No files found.
dlls/comctl32/progress.c
View file @
ab4438e2
...
...
@@ -131,35 +131,12 @@ static inline int get_bar_position( PROGRESS_INFO *infoPtr, LONG style,
/***********************************************************************
* PROGRESS_Invalidate
*
* Invalide the range between old and new pos.
* Don't be too clever about invalidating the progress bar.
* Installshield depends on this simple behaviour.
*/
static
void
PROGRESS_Invalidate
(
PROGRESS_INFO
*
infoPtr
,
INT
old
,
INT
new
)
{
LONG
style
=
GetWindowLongW
(
infoPtr
->
Self
,
GWL_STYLE
);
RECT
rect
;
int
oldPos
,
newPos
;
BOOL
barSmooth
=
(
style
&
PBS_SMOOTH
)
&&
!
GetWindowTheme
(
infoPtr
->
Self
);
get_client_rect
(
infoPtr
->
Self
,
&
rect
);
oldPos
=
get_bar_position
(
infoPtr
,
style
,
&
rect
,
old
);
newPos
=
get_bar_position
(
infoPtr
,
style
,
&
rect
,
new
);
if
(
style
&
PBS_VERTICAL
)
{
rect
.
top
=
rect
.
bottom
-
max
(
oldPos
,
newPos
);
rect
.
bottom
=
rect
.
bottom
-
min
(
oldPos
,
newPos
);
if
(
!
barSmooth
)
rect
.
top
-=
get_led_size
(
infoPtr
,
style
,
&
rect
)
+
get_led_gap
(
infoPtr
);
}
else
{
rect
.
left
=
min
(
oldPos
,
newPos
);
rect
.
right
=
max
(
oldPos
,
newPos
);
if
(
!
barSmooth
)
rect
.
right
+=
get_led_size
(
infoPtr
,
style
,
&
rect
)
+
get_led_gap
(
infoPtr
);
}
InvalidateRect
(
infoPtr
->
Self
,
&
rect
,
oldPos
>
newPos
);
InvalidateRect
(
infoPtr
->
Self
,
NULL
,
old
>
new
);
}
/* Information for a progress bar drawing helper */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment