Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
00e2d897
Commit
00e2d897
authored
Nov 15, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Nov 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Do not repaint on TBM_SETPOS if position is unchanged.
parent
305e732e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
trackbar.c
dlls/comctl32/tests/trackbar.c
+4
-0
trackbar.c
dlls/comctl32/trackbar.c
+1
-1
No files found.
dlls/comctl32/tests/trackbar.c
View file @
00e2d897
...
...
@@ -141,11 +141,13 @@ static const struct message position_test_seq[] = {
{
TBM_SETPOS
,
sent
|
wparam
|
lparam
,
TRUE
,
5
},
{
WM_PAINT
,
sent
|
defwinproc
},
{
TBM_GETPOS
,
sent
},
{
TBM_SETPOS
,
sent
|
wparam
|
lparam
,
TRUE
,
5
},
{
TBM_SETPOS
,
sent
|
wparam
|
lparam
,
TRUE
,
1000
},
{
WM_PAINT
,
sent
|
defwinproc
},
{
TBM_GETPOS
,
sent
},
{
TBM_SETPOS
,
sent
|
wparam
|
lparam
,
FALSE
,
20
},
{
TBM_GETPOS
,
sent
},
{
TBM_SETPOS
,
sent
|
wparam
|
lparam
,
TRUE
,
20
},
{
TBM_GETPOS
,
sent
},
{
0
}
};
...
...
@@ -605,12 +607,14 @@ static void test_position(HWND hWndTrackbar){
SendMessage
(
hWndTrackbar
,
TBM_SETPOS
,
TRUE
,
5
);
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETPOS
,
0
,
0
);
expect
(
5
,
r
);
SendMessage
(
hWndTrackbar
,
TBM_SETPOS
,
TRUE
,
5
);
SendMessage
(
hWndTrackbar
,
TBM_SETPOS
,
TRUE
,
1000
);
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETPOS
,
0
,
0
);
expect
(
100
,
r
);
SendMessage
(
hWndTrackbar
,
TBM_SETPOS
,
FALSE
,
20
);
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETPOS
,
0
,
0
);
expect
(
20
,
r
);
SendMessage
(
hWndTrackbar
,
TBM_SETPOS
,
TRUE
,
20
);
/* test TBM_GETPOS */
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETPOS
,
0
,
0
);
...
...
dlls/comctl32/trackbar.c
View file @
00e2d897
...
...
@@ -1148,7 +1148,7 @@ TRACKBAR_SetPos (TRACKBAR_INFO *infoPtr, BOOL fPosition, LONG lPosition)
infoPtr
->
lPos
=
infoPtr
->
lRangeMax
;
infoPtr
->
flags
|=
TB_THUMBPOSCHANGED
;
if
(
fPosition
)
TRACKBAR_InvalidateThumbMove
(
infoPtr
,
oldPos
,
lPosition
);
if
(
fPosition
&&
oldPos
!=
lPosition
)
TRACKBAR_InvalidateThumbMove
(
infoPtr
,
oldPos
,
lPosition
);
return
0
;
}
...
...
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