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
6971e1d7
Commit
6971e1d7
authored
Jan 03, 2005
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Jan 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments, fix negative value from GetCurFocus.
parent
8b4ff101
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
tab.c
dlls/comctl32/tab.c
+14
-2
No files found.
dlls/comctl32/tab.c
View file @
6971e1d7
...
@@ -201,6 +201,8 @@ TAB_DumpItemInternal(TAB_INFO *infoPtr, UINT iItem)
...
@@ -201,6 +201,8 @@ TAB_DumpItemInternal(TAB_INFO *infoPtr, UINT iItem)
}
}
}
}
/* RETURNS
* the index of the selected tab, or -1 if no tab is selected. */
static
LRESULT
static
LRESULT
TAB_GetCurSel
(
HWND
hwnd
)
TAB_GetCurSel
(
HWND
hwnd
)
{
{
...
@@ -209,11 +211,21 @@ TAB_GetCurSel (HWND hwnd)
...
@@ -209,11 +211,21 @@ TAB_GetCurSel (HWND hwnd)
return
infoPtr
->
iSelected
;
return
infoPtr
->
iSelected
;
}
}
/* RETURNS
* the index of the tab item that has the focus
* NOTE
* we have not to return negative value
* TODO
* test for windows */
static
LRESULT
static
LRESULT
TAB_GetCurFocus
(
HWND
hwnd
)
TAB_GetCurFocus
(
HWND
hwnd
)
{
{
TAB_INFO
*
infoPtr
=
TAB_GetInfoPtr
(
hwnd
);
TAB_INFO
*
infoPtr
=
TAB_GetInfoPtr
(
hwnd
);
if
(
infoPtr
->
uFocus
<
0
)
{
FIXME
(
"we have not to return negative value"
);
return
0
;
}
return
infoPtr
->
uFocus
;
return
infoPtr
->
uFocus
;
}
}
...
@@ -255,7 +267,7 @@ TAB_SetCurFocus (HWND hwnd,WPARAM wParam)
...
@@ -255,7 +267,7 @@ TAB_SetCurFocus (HWND hwnd,WPARAM wParam)
FIXME
(
"Should set input focus
\n
"
);
FIXME
(
"Should set input focus
\n
"
);
}
else
{
}
else
{
int
oldFocus
=
infoPtr
->
uFocus
;
int
oldFocus
=
infoPtr
->
uFocus
;
if
(
infoPtr
->
iSelected
!=
iItem
||
infoPtr
->
u
Focus
==
-
1
)
{
if
(
infoPtr
->
iSelected
!=
iItem
||
old
Focus
==
-
1
)
{
infoPtr
->
uFocus
=
iItem
;
infoPtr
->
uFocus
=
iItem
;
if
(
oldFocus
!=
-
1
)
{
if
(
oldFocus
!=
-
1
)
{
if
(
!
TAB_SendSimpleNotify
(
hwnd
,
TCN_SELCHANGING
))
{
if
(
!
TAB_SendSimpleNotify
(
hwnd
,
TCN_SELCHANGING
))
{
...
...
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