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
2e0a42ec
Commit
2e0a42ec
authored
Jul 22, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The calculated button height should include the text height when no
buttons are present.
parent
3b77de9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
toolbar.c
dlls/comctl32/toolbar.c
+9
-1
No files found.
dlls/comctl32/toolbar.c
View file @
2e0a42ec
...
...
@@ -1175,12 +1175,20 @@ TOOLBAR_CalcStrings (HWND hwnd, LPSIZE lpSize)
lpSize
->
cx
=
0
;
lpSize
->
cy
=
0
;
if
(
infoPtr
->
nMaxTextRows
==
0
)
if
(
infoPtr
->
nMaxTextRows
==
0
)
return
;
hdc
=
GetDC
(
hwnd
);
hOldFont
=
SelectObject
(
hdc
,
infoPtr
->
hFont
);
if
(
infoPtr
->
nNumButtons
==
0
)
{
TEXTMETRICW
tm
;
GetTextMetricsW
(
hdc
,
&
tm
);
lpSize
->
cy
=
tm
.
tmHeight
;
}
btnPtr
=
infoPtr
->
buttons
;
for
(
i
=
0
;
i
<
infoPtr
->
nNumButtons
;
i
++
,
btnPtr
++
)
{
if
(
TOOLBAR_HasText
(
infoPtr
,
btnPtr
))
...
...
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