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
9a96ac0d
Commit
9a96ac0d
authored
Jan 06, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: PageSetupDlgW: Set orientation in printer dialog.
parent
63c5e152
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
printdlg.c
dlls/comdlg32/printdlg.c
+18
-0
No files found.
dlls/comdlg32/printdlg.c
View file @
9a96ac0d
...
@@ -2701,6 +2701,23 @@ static void PRINTDLG_PS_SetOrientationW(HWND hDlg, PageSetupDataW* pda)
...
@@ -2701,6 +2701,23 @@ static void PRINTDLG_PS_SetOrientationW(HWND hDlg, PageSetupDataW* pda)
}
}
}
}
static
void
PRINTDLG_PS_UpdatePrintDlgW
(
PageSetupDataW
*
pda
)
{
DEVMODEW
*
dm
;
dm
=
GlobalLock
(
pda
->
pdlg
.
hDevMode
);
if
(
!
dm
)
return
;
if
(
pda
->
curdlg
.
ptPaperSize
.
y
>
pda
->
curdlg
.
ptPaperSize
.
x
)
dm
->
u1
.
s1
.
dmOrientation
=
DMORIENT_PORTRAIT
;
else
dm
->
u1
.
s1
.
dmOrientation
=
DMORIENT_LANDSCAPE
;
GlobalUnlock
(
pda
->
pdlg
.
hDevMode
);
}
static
BOOL
static
BOOL
PRINTDLG_PS_ChangePrinterW
(
HWND
hDlg
,
PageSetupDataW
*
pda
)
{
PRINTDLG_PS_ChangePrinterW
(
HWND
hDlg
,
PageSetupDataW
*
pda
)
{
DEVNAMES
*
dn
;
DEVNAMES
*
dn
;
...
@@ -2985,6 +3002,7 @@ PRINTDLG_PS_WMCommandW(
...
@@ -2985,6 +3002,7 @@ PRINTDLG_PS_WMCommandW(
case
psh3
:
{
case
psh3
:
{
pda
->
pdlg
.
Flags
=
0
;
pda
->
pdlg
.
Flags
=
0
;
pda
->
pdlg
.
hwndOwner
=
hDlg
;
pda
->
pdlg
.
hwndOwner
=
hDlg
;
PRINTDLG_PS_UpdatePrintDlgW
(
pda
);
if
(
PrintDlgW
(
&
(
pda
->
pdlg
)))
if
(
PrintDlgW
(
&
(
pda
->
pdlg
)))
PRINTDLG_PS_ChangePrinterW
(
hDlg
,
pda
);
PRINTDLG_PS_ChangePrinterW
(
hDlg
,
pda
);
return
TRUE
;
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