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
3a58b51a
Commit
3a58b51a
authored
Mar 15, 2007
by
Keith Stevens
Committed by
Alexandre Julliard
Mar 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: trackbar: Return the correct number of tics for TBM_GETNUMTICS.
parent
de608991
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
trackbar.c
dlls/comctl32/tests/trackbar.c
+4
-6
trackbar.c
dlls/comctl32/trackbar.c
+4
-1
No files found.
dlls/comctl32/tests/trackbar.c
View file @
3a58b51a
...
...
@@ -775,12 +775,10 @@ static void test_tic_settings(HWND hWndTrackbar){
SendMessage
(
hWndTrackbar
,
TBM_SETRANGE
,
TRUE
,
MAKELONG
(
0
,
10
));
SendMessage
(
hWndTrackbar
,
TBM_SETTICFREQ
,
2
,
0
);
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETNUMTICS
,
0
,
0
);
todo_wine
{
expect
(
6
,
r
);
SendMessage
(
hWndTrackbar
,
TBM_SETTICFREQ
,
5
,
0
);
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETNUMTICS
,
0
,
0
);
expect
(
3
,
r
);
}
expect
(
6
,
r
);
SendMessage
(
hWndTrackbar
,
TBM_SETTICFREQ
,
5
,
0
);
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETNUMTICS
,
0
,
0
);
expect
(
3
,
r
);
SendMessage
(
hWndTrackbar
,
TBM_SETTICFREQ
,
15
,
0
);
r
=
SendMessage
(
hWndTrackbar
,
TBM_GETNUMTICS
,
0
,
0
);
expect
(
2
,
r
);
...
...
dlls/comctl32/trackbar.c
View file @
3a58b51a
...
...
@@ -1042,7 +1042,10 @@ TRACKBAR_GetNumTics (TRACKBAR_INFO *infoPtr)
if
(
GetWindowLongW
(
infoPtr
->
hwndSelf
,
GWL_STYLE
)
&
TBS_NOTICKS
)
return
0
;
return
infoPtr
->
uNumTics
+
2
;
if
(
infoPtr
->
uNumTics
==
0
)
return
2
;
else
return
infoPtr
->
uNumTics
+
1
;
}
...
...
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