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
74d99ac3
Commit
74d99ac3
authored
Dec 08, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Dec 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: PageSetupDlgA: Swap margins when changing orientation.
parent
121048a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
13 deletions
+22
-13
printdlg.c
dlls/comdlg32/printdlg.c
+22
-13
No files found.
dlls/comdlg32/printdlg.c
View file @
74d99ac3
...
...
@@ -2791,21 +2791,30 @@ PRINTDLG_PS_WMCommandA(
}
return
TRUE
;
case
rad1
:
if
(
pda
->
curdlg
.
ptPaperSize
.
x
>
pda
->
curdlg
.
ptPaperSize
.
y
){
DWORD
tmp
=
pda
->
curdlg
.
ptPaperSize
.
x
;
pda
->
curdlg
.
ptPaperSize
.
x
=
pda
->
curdlg
.
ptPaperSize
.
y
;
pda
->
curdlg
.
ptPaperSize
.
y
=
tmp
;
}
PRINTDLG_PS_ChangePaperPrev
(
pda
);
break
;
case
rad2
:
if
(
pda
->
curdlg
.
ptPaperSize
.
y
>
pda
->
curdlg
.
ptPaperSize
.
x
){
DWORD
tmp
=
pda
->
curdlg
.
ptPaperSize
.
x
;
pda
->
curdlg
.
ptPaperSize
.
x
=
pda
->
curdlg
.
ptPaperSize
.
y
;
pda
->
curdlg
.
ptPaperSize
.
y
=
tmp
;
}
if
((
id
==
rad1
&&
pda
->
curdlg
.
ptPaperSize
.
x
>
pda
->
curdlg
.
ptPaperSize
.
y
)
||
(
id
==
rad2
&&
pda
->
curdlg
.
ptPaperSize
.
y
>
pda
->
curdlg
.
ptPaperSize
.
x
))
{
char
TmpText
[
25
];
char
TmpText2
[
25
];
DWORD
tmp
=
pda
->
curdlg
.
ptPaperSize
.
x
;
pda
->
curdlg
.
ptPaperSize
.
x
=
pda
->
curdlg
.
ptPaperSize
.
y
;
pda
->
curdlg
.
ptPaperSize
.
y
=
tmp
;
GetDlgItemTextA
(
hDlg
,
edt4
,
TmpText
,
sizeof
(
TmpText
));
GetDlgItemTextA
(
hDlg
,
edt5
,
TmpText2
,
sizeof
(
TmpText2
));
SetDlgItemTextA
(
hDlg
,
edt5
,
TmpText
);
SetDlgItemTextA
(
hDlg
,
edt4
,
TmpText2
);
GetDlgItemTextA
(
hDlg
,
edt6
,
TmpText
,
sizeof
(
TmpText
));
GetDlgItemTextA
(
hDlg
,
edt7
,
TmpText2
,
sizeof
(
TmpText2
));
SetDlgItemTextA
(
hDlg
,
edt7
,
TmpText
);
SetDlgItemTextA
(
hDlg
,
edt6
,
TmpText2
);
PRINTDLG_PS_ChangePaperPrev
(
pda
);
break
;
}
break
;
case
cmb1
:
/* Printer combo */
if
(
msg
==
CBN_SELCHANGE
){
char
crPrinterName
[
256
];
...
...
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