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
0ce209c8
Commit
0ce209c8
authored
Sep 24, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added set WS_CHILD and CCS_TOP to the toolbar's style.
TOOLBAR_CalcToolbar(): if the bitmap size is 0, use the builtin defaults.
parent
17acdf26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
13 deletions
+24
-13
commctrl.c
dlls/comctl32/commctrl.c
+24
-13
No files found.
dlls/comctl32/commctrl.c
View file @
0ce209c8
...
...
@@ -657,8 +657,15 @@ CreateToolbarEx (HWND hwnd, DWORD style, UINT wID, INT nBitmaps,
INT
iNumButtons
,
INT
dxButton
,
INT
dyButton
,
INT
dxBitmap
,
INT
dyBitmap
,
UINT
uStructSize
)
{
HWND
hwndTB
=
CreateWindowExA
(
0
,
TOOLBARCLASSNAMEA
,
""
,
style
,
0
,
0
,
0
,
0
,
HWND
hwndTB
;
/* If not position is specified then put it at the top */
if
((
style
&
CCS_BOTTOM
)
==
0
)
{
style
|=
CCS_TOP
;
}
hwndTB
=
CreateWindowExA
(
0
,
TOOLBARCLASSNAMEA
,
""
,
style
|
WS_CHILD
,
0
,
0
,
0
,
0
,
hwnd
,
(
HMENU
)
wID
,
0
,
NULL
);
if
(
hwndTB
)
{
TBADDBITMAP
tbab
;
...
...
@@ -666,17 +673,21 @@ CreateToolbarEx (HWND hwnd, DWORD style, UINT wID, INT nBitmaps,
SendMessageA
(
hwndTB
,
TB_BUTTONSTRUCTSIZE
,
(
WPARAM
)
uStructSize
,
0
);
/* set bitmap and button size */
/*If CreateToolbarEx receive 0, windows set default values*/
if
(
dyBitmap
<
0
)
dyBitmap
=
15
;
if
(
dxBitmap
<
0
)
dxBitmap
=
16
;
SendMessageA
(
hwndTB
,
TB_SETBITMAPSIZE
,
0
,
MAKELPARAM
((
WORD
)
dxBitmap
,
(
WORD
)
dyBitmap
));
SendMessageA
(
hwndTB
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
((
WORD
)
dxButton
,
(
WORD
)
dyButton
));
/* set bitmap and button size */
/*If CreateToolbarEx receives 0, windows sets default values*/
if
(
dxBitmap
<=
0
)
dxBitmap
=
16
;
if
(
dyBitmap
<=
0
)
dyBitmap
=
15
;
SendMessageA
(
hwndTB
,
TB_SETBITMAPSIZE
,
0
,
MAKELPARAM
((
WORD
)
dxBitmap
,
(
WORD
)
dyBitmap
));
if
(
dxButton
<=
0
)
dxButton
=
24
;
if
(
dyButton
<=
0
)
dyButton
=
22
;
SendMessageA
(
hwndTB
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
((
WORD
)
dxButton
,
(
WORD
)
dyButton
));
/* add bitmaps */
...
...
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