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
454a7fde
Commit
454a7fde
authored
Aug 26, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix tab control test failures on older Windows versions.
parent
5f9f079d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
tab.c
dlls/comctl32/tests/tab.c
+20
-19
No files found.
dlls/comctl32/tests/tab.c
View file @
454a7fde
...
...
@@ -776,7 +776,8 @@ static void test_getters_setters(HWND parent_wnd, INT nTabs)
tcItem
.
dwStateMask
=
TCIS_BUTTONPRESSED
;
selectionIndex
=
SendMessage
(
hTab
,
TCM_GETCURSEL
,
0
,
0
);
SendMessage
(
hTab
,
TCM_GETITEM
,
selectionIndex
,
(
LPARAM
)
&
tcItem
);
ok
(
tcItem
.
dwState
&
TCIS_BUTTONPRESSED
,
"Selected item should have TCIS_BUTTONPRESSED
\n
"
);
ok
(
tcItem
.
dwState
&
TCIS_BUTTONPRESSED
||
broken
(
tcItem
.
dwState
==
0
),
/* older comctl32 */
"Selected item should have TCIS_BUTTONPRESSED
\n
"
);
}
/* Testing ExtendedStyle */
...
...
@@ -838,10 +839,6 @@ static void test_getters_setters(HWND parent_wnd, INT nTabs)
DWORD
ret
;
char
szText
[
32
]
=
"New Label"
;
/* TCM_GETITEM with null dest pointer */
ret
=
SendMessage
(
hTab
,
TCM_GETITEM
,
0
,
(
LPARAM
)
NULL
);
expect
(
FALSE
,
ret
);
/* passing invalid index should result in initialization to zero
for members mentioned in mask requested */
...
...
@@ -920,20 +917,24 @@ static void test_getters_setters(HWND parent_wnd, INT nTabs)
ok
(
SendMessage
(
hTab
,
TCM_SETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Setting new item failed.
\n
"
);
tcItem
.
dwState
=
0
;
ok
(
SendMessage
(
hTab
,
TCM_GETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Getting item failed.
\n
"
);
ok
(
tcItem
.
dwState
==
TCIS_BUTTONPRESSED
,
"TCIS_BUTTONPRESSED should be set.
\n
"
);
/* next highlight item, test that dwStateMask actually masks */
tcItem
.
mask
=
TCIF_STATE
;
tcItem
.
dwStateMask
=
TCIS_HIGHLIGHTED
;
tcItem
.
dwState
=
TCIS_HIGHLIGHTED
;
ok
(
SendMessage
(
hTab
,
TCM_SETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Setting new item failed.
\n
"
);
tcItem
.
dwState
=
0
;
ok
(
SendMessage
(
hTab
,
TCM_GETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Getting item failed.
\n
"
);
ok
(
tcItem
.
dwState
==
TCIS_HIGHLIGHTED
,
"TCIS_HIGHLIGHTED should be set.
\n
"
);
tcItem
.
mask
=
TCIF_STATE
;
tcItem
.
dwStateMask
=
TCIS_BUTTONPRESSED
;
tcItem
.
dwState
=
0
;
ok
(
SendMessage
(
hTab
,
TCM_GETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Getting item failed.
\n
"
);
ok
(
tcItem
.
dwState
==
TCIS_BUTTONPRESSED
,
"TCIS_BUTTONPRESSED should be set.
\n
"
);
if
(
tcItem
.
dwState
)
{
ok
(
tcItem
.
dwState
==
TCIS_BUTTONPRESSED
,
"TCIS_BUTTONPRESSED should be set.
\n
"
);
/* next highlight item, test that dwStateMask actually masks */
tcItem
.
mask
=
TCIF_STATE
;
tcItem
.
dwStateMask
=
TCIS_HIGHLIGHTED
;
tcItem
.
dwState
=
TCIS_HIGHLIGHTED
;
ok
(
SendMessage
(
hTab
,
TCM_SETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Setting new item failed.
\n
"
);
tcItem
.
dwState
=
0
;
ok
(
SendMessage
(
hTab
,
TCM_GETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Getting item failed.
\n
"
);
ok
(
tcItem
.
dwState
==
TCIS_HIGHLIGHTED
,
"TCIS_HIGHLIGHTED should be set.
\n
"
);
tcItem
.
mask
=
TCIF_STATE
;
tcItem
.
dwStateMask
=
TCIS_BUTTONPRESSED
;
tcItem
.
dwState
=
0
;
ok
(
SendMessage
(
hTab
,
TCM_GETITEM
,
0
,
(
LPARAM
)
&
tcItem
),
"Getting item failed.
\n
"
);
ok
(
tcItem
.
dwState
==
TCIS_BUTTONPRESSED
,
"TCIS_BUTTONPRESSED should be set.
\n
"
);
}
else
win_skip
(
"Item state mask not supported
\n
"
);
}
/* Testing GetSet ToolTip */
...
...
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