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
8147ee10
Commit
8147ee10
authored
Oct 14, 2003
by
Maxime Bellengé
Committed by
Alexandre Julliard
Oct 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only redraw the necessary area of the tab component and not the whole
component like windows does.
parent
47d64a04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tab.c
dlls/comctl32/tab.c
+6
-1
No files found.
dlls/comctl32/tab.c
View file @
8147ee10
...
...
@@ -2334,36 +2334,41 @@ static void TAB_InvalidateTabArea(
RECT
clientRect
,
r
;
DWORD
lStyle
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
INT
lastRow
=
infoPtr
->
uNumRows
-
1
;
RECT
rect
;
if
(
lastRow
<
0
)
return
;
GetClientRect
(
hwnd
,
&
clientRect
);
TAB_InternalGetItemRect
(
hwnd
,
infoPtr
,
infoPtr
->
uNumItem
-
1
,
&
rect
,
NULL
);
if
((
lStyle
&
TCS_BOTTOM
)
&&
!
(
lStyle
&
TCS_VERTICAL
))
{
clientRect
.
top
=
clientRect
.
bottom
-
infoPtr
->
tabHeight
-
lastRow
*
(
infoPtr
->
tabHeight
-
2
)
-
((
lStyle
&
TCS_BUTTONS
)
?
lastRow
*
BUTTON_SPACINGY
:
0
)
-
3
;
clientRect
.
right
=
clientRect
.
left
+
rect
.
right
+
2
*
SELECTED_TAB_OFFSET
;
}
else
if
((
lStyle
&
TCS_BOTTOM
)
&&
(
lStyle
&
TCS_VERTICAL
))
{
clientRect
.
left
=
clientRect
.
right
-
infoPtr
->
tabHeight
-
lastRow
*
(
infoPtr
->
tabHeight
-
2
)
-
((
lStyle
&
TCS_BUTTONS
)
?
lastRow
*
BUTTON_SPACINGY
:
0
)
-
2
;
clientRect
.
bottom
=
clientRect
.
top
+
rect
.
bottom
+
2
*
SELECTED_TAB_OFFSET
;
}
else
if
(
lStyle
&
TCS_VERTICAL
)
{
clientRect
.
right
=
clientRect
.
left
+
infoPtr
->
tabHeight
+
lastRow
*
(
infoPtr
->
tabHeight
-
2
)
-
((
lStyle
&
TCS_BUTTONS
)
?
lastRow
*
BUTTON_SPACINGY
:
0
)
+
2
;
clientRect
.
bottom
=
clientRect
.
top
+
rect
.
bottom
+
2
*
SELECTED_TAB_OFFSET
;
}
else
{
clientRect
.
bottom
=
clientRect
.
top
+
infoPtr
->
tabHeight
+
lastRow
*
(
infoPtr
->
tabHeight
-
2
)
+
((
lStyle
&
TCS_BUTTONS
)
?
lastRow
*
BUTTON_SPACINGY
:
0
)
+
2
;
clientRect
.
right
=
clientRect
.
left
+
rect
.
right
+
2
*
SELECTED_TAB_OFFSET
;
}
/* Punch out the updown control */
...
...
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