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
0485fc19
Commit
0485fc19
authored
Apr 30, 2003
by
Maxime Bellengé
Committed by
Alexandre Julliard
Apr 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bounding rectangle computation for an ownerdraw tab.
parent
dfdeaaf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
tab.c
dlls/comctl32/tab.c
+13
-12
No files found.
dlls/comctl32/tab.c
View file @
0485fc19
...
...
@@ -1488,14 +1488,6 @@ TAB_DrawItemInterior
SetTextColor
(
hdc
,
(
iItem
==
infoPtr
->
iHotTracked
)
?
comctl32_color
.
clrHighlight
:
comctl32_color
.
clrBtnText
);
/*
* Deflate the rectangle to acount for the padding
*/
if
(
lStyle
&
TCS_VERTICAL
)
InflateRect
(
drawRect
,
-
infoPtr
->
uVItemPadding
,
-
infoPtr
->
uHItemPadding
);
else
InflateRect
(
drawRect
,
-
infoPtr
->
uHItemPadding
,
-
infoPtr
->
uVItemPadding
);
/*
* if owner draw, tell the owner to draw
...
...
@@ -1517,13 +1509,14 @@ TAB_DrawItemInterior
dis
.
CtlID
=
id
;
dis
.
itemID
=
iItem
;
dis
.
itemAction
=
ODA_DRAWENTIRE
;
dis
.
itemState
=
0
;
if
(
iItem
==
infoPtr
->
iSelected
)
dis
.
itemState
=
ODS_SELECTED
;
else
dis
.
itemState
=
0
;
dis
.
itemState
|
=
ODS_SELECTED
;
if
(
infoPtr
->
uFocus
==
iItem
)
dis
.
itemState
|=
ODS_FOCUS
;
dis
.
hwndItem
=
hwnd
;
/* */
dis
.
hDC
=
hdc
;
dis
.
rcItem
=
*
drawRect
;
/* */
CopyRect
(
&
dis
.
rcItem
,
drawRect
);
dis
.
itemData
=
infoPtr
->
items
[
iItem
].
lParam
;
/*
...
...
@@ -1550,6 +1543,14 @@ TAB_DrawItemInterior
RECT
rcText
;
INT
center_offset
;
/*
* Deflate the rectangle to acount for the padding
*/
if
(
lStyle
&
TCS_VERTICAL
)
InflateRect
(
drawRect
,
-
infoPtr
->
uVItemPadding
,
-
infoPtr
->
uHItemPadding
);
else
InflateRect
(
drawRect
,
-
infoPtr
->
uHItemPadding
,
-
infoPtr
->
uVItemPadding
);
/* set rcImage to drawRect, we will use top & left in our ImageList_Draw call */
rcImage
=
*
drawRect
;
...
...
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