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
3822aa4b
Commit
3822aa4b
authored
Sep 04, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: TCM_SETCURSEL also updates the focus item.
parent
c53487b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
tab.c
dlls/comctl32/tab.c
+1
-0
tab.c
dlls/comctl32/tests/tab.c
+6
-4
No files found.
dlls/comctl32/tab.c
View file @
3822aa4b
...
...
@@ -255,6 +255,7 @@ static inline LRESULT TAB_SetCurSel (TAB_INFO *infoPtr, INT iItem)
else
{
if
(
infoPtr
->
iSelected
!=
iItem
)
{
infoPtr
->
iSelected
=
iItem
;
infoPtr
->
uFocus
=
iItem
;
TAB_EnsureSelectionVisible
(
infoPtr
);
TAB_InvalidateTabArea
(
infoPtr
);
}
...
...
dlls/comctl32/tests/tab.c
View file @
3822aa4b
...
...
@@ -182,6 +182,7 @@ static const struct message getset_cur_focus_seq[] = {
static
const
struct
message
getset_cur_sel_seq
[]
=
{
{
TCM_SETCURSEL
,
sent
|
lparam
,
0
},
{
TCM_GETCURSEL
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
TCM_GETCURFOCUS
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
TCM_SETCURSEL
,
sent
|
lparam
,
0
},
{
TCM_GETCURSEL
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
TCM_SETCURSEL
,
sent
|
lparam
,
0
},
...
...
@@ -673,9 +674,7 @@ static void test_getters_setters(INT nTabs)
SendMessage
(
hTab
,
TCM_SETCURFOCUS
,
nTabs
+
1
,
0
);
focusIndex
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
todo_wine
{
expect
(
1
,
focusIndex
);
}
ok_sequence
(
sequences
,
TAB_SEQ_INDEX
,
getset_cur_focus_seq
,
"Getset curFoc test sequence"
,
FALSE
);
}
...
...
@@ -683,6 +682,7 @@ static void test_getters_setters(INT nTabs)
/* Testing CurSel */
{
INT
selectionIndex
;
INT
focusIndex
;
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -692,6 +692,10 @@ static void test_getters_setters(INT nTabs)
selectionIndex
=
SendMessage
(
hTab
,
TCM_GETCURSEL
,
0
,
0
);
expect
(
nTabs
-
1
,
selectionIndex
);
/* Focus should switch with selection */
focusIndex
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
expect
(
nTabs
-
1
,
focusIndex
);
/* Testing CurSel with negative value */
SendMessage
(
hTab
,
TCM_SETCURSEL
,
-
10
,
0
);
selectionIndex
=
SendMessage
(
hTab
,
TCM_GETCURSEL
,
0
,
0
);
...
...
@@ -704,9 +708,7 @@ static void test_getters_setters(INT nTabs)
selectionIndex
=
SendMessage
(
hTab
,
TCM_SETCURSEL
,
nTabs
+
1
,
0
);
expect
(
-
1
,
selectionIndex
);
selectionIndex
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
todo_wine
{
expect
(
1
,
selectionIndex
);
}
ok_sequence
(
sequences
,
TAB_SEQ_INDEX
,
getset_cur_sel_seq
,
"Getset curSel test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_sequence
,
"Getset curSel test parent sequence"
,
FALSE
);
...
...
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