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
3d4a4dae
Commit
3d4a4dae
authored
Mar 09, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Update thumb position on WM_MOUSEMOVE instead of deferring it.
parent
4430decf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
trackbar.c
dlls/comctl32/tests/trackbar.c
+8
-12
trackbar.c
dlls/comctl32/trackbar.c
+1
-2
No files found.
dlls/comctl32/tests/trackbar.c
View file @
3d4a4dae
...
...
@@ -33,11 +33,7 @@ static HWND hWndParent;
static
struct
msg_sequence
*
sequences
[
NUM_MSG_SEQUENCE
];
static
const
struct
message
create_trackbar_wnd_seq
[]
=
{
{
0
}
};
static
const
struct
message
parent_empty_test_seq
[]
=
{
static
const
struct
message
empty_seq
[]
=
{
{
0
}
};
...
...
@@ -545,7 +541,7 @@ static void test_line_size(HWND hWndTrackbar){
expect
(
4
,
r
);
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
line_size_test_seq
,
"linesize test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_empty_test
_seq
,
"parent line test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty
_seq
,
"parent line test sequence"
,
FALSE
);
}
...
...
@@ -565,7 +561,7 @@ static void test_page_size(HWND hWndTrackbar){
expect
(
20
,
r
);
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
page_size_test_seq
,
"page size test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_empty_test
_seq
,
"parent page size test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty
_seq
,
"parent page size test sequence"
,
FALSE
);
/* check for zero page size */
r
=
SendMessage
(
hWndTrackbar
,
TBM_SETPAGESIZE
,
0
,
0
);
...
...
@@ -861,7 +857,7 @@ static void test_tic_placement(HWND hWndTrackbar){
ok
(
r
>
0
,
"Expected r > 0, got %d
\n
"
,
r
);
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
tic_placement_test_seq
,
"get tic placement test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_empty_test
_seq
,
"parent get tic placement test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty
_seq
,
"parent get tic placement test sequence"
,
FALSE
);
}
...
...
@@ -905,7 +901,7 @@ static void test_tool_tips(HWND hWndTrackbar){
ok
(
rTest
==
hWndTooltip
,
"Expected hWndTooltip
\n
"
);
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
tool_tips_test_seq
,
"tool tips test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_empty_test
_seq
,
"parent tool tips test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty
_seq
,
"parent tool tips test sequence"
,
FALSE
);
}
...
...
@@ -924,7 +920,7 @@ static void test_unicode(HWND hWndTrackbar){
ok
(
r
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
r
);
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
unicode_test_seq
,
"unicode test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_empty_test
_seq
,
"parent unicode test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty
_seq
,
"parent unicode test sequence"
,
FALSE
);
}
static
void
test_ignore_selection
(
HWND
hWndTrackbar
){
...
...
@@ -966,7 +962,7 @@ static void test_ignore_selection(HWND hWndTrackbar){
expect
(
0
,
r
);
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
ignore_selection_test_seq
,
"ignore selection setting test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_empty_test
_seq
,
"parent ignore selection setting test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty
_seq
,
"parent ignore selection setting test sequence"
,
FALSE
);
}
static
void
test_initial_state
(
void
)
...
...
@@ -1075,7 +1071,7 @@ START_TEST(trackbar)
return
;
}
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
create_trackbar_wnd
_seq
,
"create Trackbar Window"
,
FALSE
);
ok_sequence
(
sequences
,
TRACKBAR_SEQ_INDEX
,
empty
_seq
,
"create Trackbar Window"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_create_trackbar_wnd_seq
,
"parent trackbar window"
,
TRUE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCE
);
...
...
dlls/comctl32/trackbar.c
View file @
3d4a4dae
...
...
@@ -1664,11 +1664,10 @@ TRACKBAR_MouseMove (TRACKBAR_INFO *infoPtr, INT x, INT y)
if
(
dragPos
==
oldPos
)
return
TRUE
;
infoPtr
->
lPos
=
dragPos
;
TRACKBAR_UpdateThumb
(
infoPtr
);
infoPtr
->
flags
|=
TB_THUMBPOSCHANGED
;
notify_with_scroll
(
infoPtr
,
TB_THUMBTRACK
|
(
infoPtr
->
lPos
<<
16
));
TRACKBAR_InvalidateThumbMove
(
infoPtr
,
oldPos
,
dragPos
);
UpdateWindow
(
infoPtr
->
hwndSelf
);
...
...
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