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
60e305d9
Commit
60e305d9
authored
Apr 17, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Apr 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Invalidate the toolbar if the button size is changed.
parent
5b7b911f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
toolbar.c
dlls/comctl32/toolbar.c
+12
-6
No files found.
dlls/comctl32/toolbar.c
View file @
60e305d9
...
@@ -4364,6 +4364,7 @@ static LRESULT
...
@@ -4364,6 +4364,7 @@ static LRESULT
TOOLBAR_SetButtonSize
(
TOOLBAR_INFO
*
infoPtr
,
LPARAM
lParam
)
TOOLBAR_SetButtonSize
(
TOOLBAR_INFO
*
infoPtr
,
LPARAM
lParam
)
{
{
INT
cx
=
(
short
)
LOWORD
(
lParam
),
cy
=
(
short
)
HIWORD
(
lParam
);
INT
cx
=
(
short
)
LOWORD
(
lParam
),
cy
=
(
short
)
HIWORD
(
lParam
);
int
top
=
default_top_margin
(
infoPtr
);
if
((
cx
<
0
)
||
(
cy
<
0
))
if
((
cx
<
0
)
||
(
cy
<
0
))
{
{
...
@@ -4386,15 +4387,20 @@ TOOLBAR_SetButtonSize (TOOLBAR_INFO *infoPtr, LPARAM lParam)
...
@@ -4386,15 +4387,20 @@ TOOLBAR_SetButtonSize (TOOLBAR_INFO *infoPtr, LPARAM lParam)
*/
*/
if
(
cx
==
0
)
cx
=
24
;
if
(
cx
==
0
)
cx
=
24
;
if
(
cy
==
0
)
cy
=
22
;
if
(
cy
==
0
)
cy
=
22
;
cx
=
max
(
cx
,
infoPtr
->
szPadding
.
cx
+
infoPtr
->
nBitmapWidth
);
cx
=
max
(
cx
,
infoPtr
->
szPadding
.
cx
+
infoPtr
->
nBitmapWidth
);
cy
=
max
(
cy
,
infoPtr
->
szPadding
.
cy
+
infoPtr
->
nBitmapHeight
);
cy
=
max
(
cy
,
infoPtr
->
szPadding
.
cy
+
infoPtr
->
nBitmapHeight
);
infoPtr
->
nButtonWidth
=
cx
;
if
(
cx
!=
infoPtr
->
nButtonWidth
||
cy
!=
infoPtr
->
nButtonHeight
||
infoPtr
->
nButtonHeight
=
cy
;
top
!=
infoPtr
->
iTopMargin
)
{
infoPtr
->
iTopMargin
=
default_top_margin
(
infoPtr
);
infoPtr
->
nButtonWidth
=
cx
;
TOOLBAR_LayoutToolbar
(
infoPtr
);
infoPtr
->
nButtonHeight
=
cy
;
infoPtr
->
iTopMargin
=
top
;
TOOLBAR_LayoutToolbar
(
infoPtr
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
}
return
TRUE
;
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