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
8b086842
Commit
8b086842
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 IsValidImageList test is not needed because if it isn't a valid
image list we will have set the bitmap width and height to 1 and it does the wrong thing when no buttons are present.
parent
455989fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
toolbar.c
dlls/comctl32/toolbar.c
+5
-8
No files found.
dlls/comctl32/toolbar.c
View file @
8b086842
...
@@ -1565,7 +1565,6 @@ TOOLBAR_CalcToolbar (HWND hwnd)
...
@@ -1565,7 +1565,6 @@ TOOLBAR_CalcToolbar (HWND hwnd)
INT
x
,
y
,
cx
,
cy
;
INT
x
,
y
,
cx
,
cy
;
SIZE
sizeString
,
sizeButton
;
SIZE
sizeString
,
sizeButton
;
BOOL
bWrap
;
BOOL
bWrap
;
BOOL
usesBitmaps
=
FALSE
;
BOOL
validImageList
=
FALSE
;
BOOL
validImageList
=
FALSE
;
BOOL
hasDropDownArrows
=
TOOLBAR_HasDropDownArrows
(
infoPtr
->
dwExStyle
);
BOOL
hasDropDownArrows
=
TOOLBAR_HasDropDownArrows
(
infoPtr
->
dwExStyle
);
...
@@ -1573,14 +1572,9 @@ TOOLBAR_CalcToolbar (HWND hwnd)
...
@@ -1573,14 +1572,9 @@ TOOLBAR_CalcToolbar (HWND hwnd)
TOOLBAR_DumpToolbar
(
infoPtr
,
__LINE__
);
TOOLBAR_DumpToolbar
(
infoPtr
,
__LINE__
);
for
(
i
=
0
;
i
<
infoPtr
->
nNumButtons
&&
!
usesBitmaps
;
i
++
)
{
if
(
TOOLBAR_IsValidBitmapIndex
(
infoPtr
,
infoPtr
->
buttons
[
i
].
iBitmap
))
usesBitmaps
=
TRUE
;
}
if
(
TOOLBAR_IsValidImageList
(
infoPtr
,
0
))
if
(
TOOLBAR_IsValidImageList
(
infoPtr
,
0
))
validImageList
=
TRUE
;
validImageList
=
TRUE
;
sizeButton
=
TOOLBAR_MeasureButton
(
infoPtr
,
sizeString
,
usesBitmaps
,
validImageList
);
sizeButton
=
TOOLBAR_MeasureButton
(
infoPtr
,
sizeString
,
TRUE
,
validImageList
);
infoPtr
->
nButtonWidth
=
sizeButton
.
cx
;
infoPtr
->
nButtonWidth
=
sizeButton
.
cx
;
infoPtr
->
nButtonHeight
=
sizeButton
.
cy
;
infoPtr
->
nButtonHeight
=
sizeButton
.
cy
;
...
@@ -1592,7 +1586,10 @@ TOOLBAR_CalcToolbar (HWND hwnd)
...
@@ -1592,7 +1586,10 @@ TOOLBAR_CalcToolbar (HWND hwnd)
TOOLBAR_WrapToolbar
(
hwnd
,
dwStyle
);
TOOLBAR_WrapToolbar
(
hwnd
,
dwStyle
);
x
=
infoPtr
->
nIndent
;
x
=
infoPtr
->
nIndent
;
y
=
0
;
if
(
infoPtr
->
dwStyle
&
TBSTYLE_FLAT
)
y
=
0
;
else
y
=
TOP_BORDER
;
/* from above, minimum is a button, and possible text */
/* from above, minimum is a button, and possible text */
cx
=
infoPtr
->
nButtonWidth
;
cx
=
infoPtr
->
nButtonWidth
;
...
...
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