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
6ca8b91f
Commit
6ca8b91f
authored
Jan 15, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Set the margins groupbox title to reflect whether we are using metric…
comdlg32: Set the margins groupbox title to reflect whether we are using metric or imperial measurements.
parent
ef4588a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
printdlg.c
dlls/comdlg32/printdlg.c
+10
-0
No files found.
dlls/comdlg32/printdlg.c
View file @
6ca8b91f
...
...
@@ -2861,6 +2861,15 @@ static void update_margin_edits(HWND hDlg, const PageSetupDataA *pda)
SetDlgItemTextW
(
hDlg
,
edt7
,
str
);
}
static
void
set_margin_groupbox_title
(
HWND
hDlg
,
const
PageSetupDataA
*
pda
)
{
WCHAR
title
[
256
];
if
(
LoadStringW
(
COMDLG32_hInstance
,
is_metric
(
pda
)
?
PD32_MARGINS_IN_MILLIMETERS
:
PD32_MARGINS_IN_INCHES
,
title
,
sizeof
(
title
)
/
sizeof
(
title
[
0
])))
SetDlgItemTextW
(
hDlg
,
grp4
,
title
);
}
/********************************************************************************
* PRINTDLG_PS_WMCommandA
* process WM_COMMAND message for PageSetupDlgA
...
...
@@ -3351,6 +3360,7 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
pda
->
dlga
->
rtMargin
.
bottom
=
size
;
}
update_margin_edits
(
hDlg
,
pda
);
set_margin_groupbox_title
(
hDlg
,
pda
);
/* if paper disabled */
if
(
pda
->
dlga
->
Flags
&
PSD_DISABLEPAPER
)
{
...
...
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