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
420f7cb0
Commit
420f7cb0
authored
Nov 01, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: toolbar: The SetButtonSize should not allow too small buttons.
parent
3bfcacc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
toolbar.c
dlls/comctl32/toolbar.c
+11
-2
No files found.
dlls/comctl32/toolbar.c
View file @
420f7cb0
...
...
@@ -4646,8 +4646,17 @@ TOOLBAR_SetButtonSize (HWND hwnd, WPARAM wParam, LPARAM lParam)
* either size, the system changes it to the default of 24 wide and
* 22 high. Demonstarted in ControlSpy Toolbar. GLA 3/02
*/
infoPtr
->
nButtonWidth
=
(
cx
)
?
cx
:
24
;
infoPtr
->
nButtonHeight
=
(
cy
)
?
cy
:
22
;
if
(
cx
==
0
)
cx
=
24
;
if
(
cy
==
0
)
cx
=
22
;
cx
=
max
(
cx
,
infoPtr
->
szPadding
.
cx
+
infoPtr
->
nBitmapWidth
);
cy
=
max
(
cy
,
infoPtr
->
szPadding
.
cy
+
infoPtr
->
nVBitmapHeight
);
infoPtr
->
nButtonWidth
=
cx
;
infoPtr
->
nButtonHeight
=
cy
;
infoPtr
->
iTopMargin
=
default_top_margin
(
infoPtr
);
TOOLBAR_LayoutToolbar
(
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