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
80b332c0
Commit
80b332c0
authored
May 18, 2023
by
Jactry Zeng
Committed by
Alexandre Julliard
May 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Calculate button height of toolbar with DPI for item dialog.
parent
bc9c8684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
itemdlg.c
dlls/comdlg32/itemdlg.c
+3
-1
No files found.
dlls/comdlg32/itemdlg.c
View file @
80b332c0
...
@@ -1896,6 +1896,7 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd)
...
@@ -1896,6 +1896,7 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd)
HWND
htoolbar
;
HWND
htoolbar
;
TBADDBITMAP
tbab
;
TBADDBITMAP
tbab
;
TBBUTTON
button
[
2
];
TBBUTTON
button
[
2
];
int
height
;
htoolbar
=
CreateWindowExW
(
0
,
TOOLBARCLASSNAMEW
,
NULL
,
TBSTYLE_FLAT
|
WS_CHILD
|
WS_VISIBLE
,
htoolbar
=
CreateWindowExW
(
0
,
TOOLBARCLASSNAMEW
,
NULL
,
TBSTYLE_FLAT
|
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
@@ -1920,7 +1921,8 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd)
...
@@ -1920,7 +1921,8 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd)
button
[
1
].
iString
=
0
;
button
[
1
].
iString
=
0
;
SendMessageW
(
htoolbar
,
TB_ADDBUTTONSW
,
2
,
(
LPARAM
)
button
);
SendMessageW
(
htoolbar
,
TB_ADDBUTTONSW
,
2
,
(
LPARAM
)
button
);
SendMessageW
(
htoolbar
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
(
24
,
24
));
height
=
MulDiv
(
24
,
This
->
dpi_y
,
USER_DEFAULT_SCREEN_DPI
);
SendMessageW
(
htoolbar
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
(
height
,
height
));
SendMessageW
(
htoolbar
,
TB_AUTOSIZE
,
0
,
0
);
SendMessageW
(
htoolbar
,
TB_AUTOSIZE
,
0
,
0
);
}
}
...
...
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