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
f2519fdc
Commit
f2519fdc
authored
Oct 29, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Oct 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Set tab focus correctly.
parent
73213d14
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
15 deletions
+4
-15
tab.c
dlls/comctl32/tab.c
+4
-5
tab.c
dlls/comctl32/tests/tab.c
+0
-10
No files found.
dlls/comctl32/tab.c
View file @
f2519fdc
...
@@ -2325,11 +2325,6 @@ static void TAB_Refresh (TAB_INFO *infoPtr, HDC hdc)
...
@@ -2325,11 +2325,6 @@ static void TAB_Refresh (TAB_INFO *infoPtr, HDC hdc)
/* Then, draw the selected item */
/* Then, draw the selected item */
TAB_DrawItem
(
infoPtr
,
hdc
,
infoPtr
->
iSelected
);
TAB_DrawItem
(
infoPtr
,
hdc
,
infoPtr
->
iSelected
);
/* If we haven't set the current focus yet, set it now.
* Only happens when we first paint the tab controls */
if
(
infoPtr
->
uFocus
==
-
1
)
TAB_SetCurFocus
(
infoPtr
,
infoPtr
->
iSelected
);
}
}
SelectObject
(
hdc
,
hOldFont
);
SelectObject
(
hdc
,
hOldFont
);
...
@@ -2637,6 +2632,10 @@ TAB_InsertItemT (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnicode)
...
@@ -2637,6 +2632,10 @@ TAB_InsertItemT (TAB_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnicode)
TRACE
(
"[%p]: added item %d %s
\n
"
,
TRACE
(
"[%p]: added item %d %s
\n
"
,
infoPtr
->
hwnd
,
iItem
,
debugstr_w
(
item
->
pszText
));
infoPtr
->
hwnd
,
iItem
,
debugstr_w
(
item
->
pszText
));
/* If we haven't set the current focus yet, set it now. */
if
(
infoPtr
->
uFocus
==
-
1
)
TAB_SetCurFocus
(
infoPtr
,
iItem
);
return
iItem
;
return
iItem
;
}
}
...
...
dlls/comctl32/tests/tab.c
View file @
f2519fdc
...
@@ -876,9 +876,7 @@ static void test_insert_focus(HWND parent_wnd)
...
@@ -876,9 +876,7 @@ static void test_insert_focus(HWND parent_wnd)
expect
(
1
,
nTabsRetrieved
);
expect
(
1
,
nTabsRetrieved
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
todo_wine
{
expect
(
0
,
r
);
expect
(
0
,
r
);
}
tcNewTab
.
iImage
=
2
;
tcNewTab
.
iImage
=
2
;
r
=
SendMessage
(
hTab
,
TCM_INSERTITEM
,
2
,
(
LPARAM
)
&
tcNewTab
);
r
=
SendMessage
(
hTab
,
TCM_INSERTITEM
,
2
,
(
LPARAM
)
&
tcNewTab
);
...
@@ -888,9 +886,7 @@ static void test_insert_focus(HWND parent_wnd)
...
@@ -888,9 +886,7 @@ static void test_insert_focus(HWND parent_wnd)
expect
(
2
,
nTabsRetrieved
);
expect
(
2
,
nTabsRetrieved
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
todo_wine
{
expect
(
0
,
r
);
expect
(
0
,
r
);
}
r
=
SendMessage
(
hTab
,
TCM_SETCURFOCUS
,
-
1
,
0
);
r
=
SendMessage
(
hTab
,
TCM_SETCURFOCUS
,
-
1
,
0
);
expect
(
0
,
r
);
expect
(
0
,
r
);
...
@@ -903,9 +899,7 @@ static void test_insert_focus(HWND parent_wnd)
...
@@ -903,9 +899,7 @@ static void test_insert_focus(HWND parent_wnd)
expect
(
2
,
r
);
expect
(
2
,
r
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
todo_wine
{
expect
(
2
,
r
);
expect
(
2
,
r
);
}
ok_sequence
(
sequences
,
TAB_SEQ_INDEX
,
insert_focus_seq
,
"insert_focus test sequence"
,
TRUE
);
ok_sequence
(
sequences
,
TAB_SEQ_INDEX
,
insert_focus_seq
,
"insert_focus test sequence"
,
TRUE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_sequence
,
"insert_focus parent test sequence"
,
FALSE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_sequence
,
"insert_focus parent test sequence"
,
FALSE
);
...
@@ -930,9 +924,7 @@ static void test_delete_focus(HWND parent_wnd)
...
@@ -930,9 +924,7 @@ static void test_delete_focus(HWND parent_wnd)
expect
(
2
,
nTabsRetrieved
);
expect
(
2
,
nTabsRetrieved
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
todo_wine
{
expect
(
0
,
r
);
expect
(
0
,
r
);
}
r
=
SendMessage
(
hTab
,
TCM_DELETEITEM
,
1
,
0
);
r
=
SendMessage
(
hTab
,
TCM_DELETEITEM
,
1
,
0
);
expect
(
1
,
r
);
expect
(
1
,
r
);
...
@@ -941,9 +933,7 @@ static void test_delete_focus(HWND parent_wnd)
...
@@ -941,9 +933,7 @@ static void test_delete_focus(HWND parent_wnd)
expect
(
1
,
nTabsRetrieved
);
expect
(
1
,
nTabsRetrieved
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
r
=
SendMessage
(
hTab
,
TCM_GETCURFOCUS
,
0
,
0
);
todo_wine
{
expect
(
0
,
r
);
expect
(
0
,
r
);
}
r
=
SendMessage
(
hTab
,
TCM_SETCURFOCUS
,
-
1
,
0
);
r
=
SendMessage
(
hTab
,
TCM_SETCURFOCUS
,
-
1
,
0
);
expect
(
0
,
r
);
expect
(
0
,
r
);
...
...
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