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
e722167e
Commit
e722167e
authored
Feb 11, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Feb 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Honour TB_SETMAXTEXTROWS.
parent
000a5c73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
toolbar.c
dlls/comctl32/toolbar.c
+8
-4
No files found.
dlls/comctl32/toolbar.c
View file @
e722167e
...
...
@@ -1164,6 +1164,9 @@ TOOLBAR_CalcStrings (HWND hwnd, LPSIZE lpSize)
lpSize
->
cx
=
0
;
lpSize
->
cy
=
0
;
if
(
infoPtr
->
nMaxTextRows
==
0
)
return
;
hdc
=
GetDC
(
hwnd
);
hOldFont
=
SelectObject
(
hdc
,
infoPtr
->
hFont
);
...
...
@@ -1415,13 +1418,13 @@ TOOLBAR_CalcToolbar (HWND hwnd)
else
infoPtr
->
nButtonHeight
=
sizeString
.
cy
+
6
;
}
else
if
(
infoPtr
->
nButtonHeight
<
infoPtr
->
nBitmapHeight
+
6
)
else
infoPtr
->
nButtonHeight
=
infoPtr
->
nBitmapHeight
+
6
;
if
(
sizeString
.
cx
>
infoPtr
->
nBitmapWidth
)
infoPtr
->
nButtonWidth
=
sizeString
.
cx
+
6
;
else
if
(
infoPtr
->
nButtonWidth
<
infoPtr
->
nBitmapWidth
+
6
)
infoPtr
->
nButtonWidth
=
infoPtr
->
nBitmapWidth
+
6
;
else
infoPtr
->
nButtonWidth
=
infoPtr
->
nBitmapWidth
+
6
;
}
if
(
infoPtr
->
cxMin
>=
0
&&
infoPtr
->
nButtonWidth
<
infoPtr
->
cxMin
)
...
...
@@ -1528,7 +1531,7 @@ TOOLBAR_CalcToolbar (HWND hwnd)
else
cx
=
infoPtr
->
nButtonWidth
;
if
(
hasDropDownArrows
&&
(
btnPtr
->
fsStyle
&
BTNS_
DROPDOWN
))
if
(
(
hasDropDownArrows
&&
(
btnPtr
->
fsStyle
&
BTNS_DROPDOWN
))
||
(
btnPtr
->
fsStyle
&
BTNS_WHOLE
DROPDOWN
))
cx
+=
DDARROW_WIDTH
;
}
if
(
btnPtr
->
fsState
&
TBSTATE_WRAP
)
...
...
@@ -4458,6 +4461,7 @@ TOOLBAR_SetMaxTextRows (HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr
->
nMaxTextRows
=
(
INT
)
wParam
;
TOOLBAR_CalcToolbar
(
hwnd
);
return
TRUE
;
}
...
...
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