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
a2e9b4bb
Commit
a2e9b4bb
authored
Jan 07, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jan 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: PageSetupDlgW: Set paper size in printer dialog.
parent
d14ef91c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
printdlg.c
dlls/comdlg32/printdlg.c
+8
-2
No files found.
dlls/comdlg32/printdlg.c
View file @
a2e9b4bb
...
@@ -2701,9 +2701,10 @@ static void PRINTDLG_PS_SetOrientationW(HWND hDlg, PageSetupDataW* pda)
...
@@ -2701,9 +2701,10 @@ static void PRINTDLG_PS_SetOrientationW(HWND hDlg, PageSetupDataW* pda)
}
}
}
}
static
void
PRINTDLG_PS_UpdatePrintDlgW
(
PageSetupDataW
*
pda
)
static
void
PRINTDLG_PS_UpdatePrintDlgW
(
PageSetupDataW
*
pda
,
HWND
hDlg
)
{
{
DEVMODEW
*
dm
;
DEVMODEW
*
dm
;
DWORD
sel
;
dm
=
GlobalLock
(
pda
->
pdlg
.
hDevMode
);
dm
=
GlobalLock
(
pda
->
pdlg
.
hDevMode
);
...
@@ -2715,6 +2716,11 @@ static void PRINTDLG_PS_UpdatePrintDlgW(PageSetupDataW* pda)
...
@@ -2715,6 +2716,11 @@ static void PRINTDLG_PS_UpdatePrintDlgW(PageSetupDataW* pda)
else
else
dm
->
u1
.
s1
.
dmOrientation
=
DMORIENT_LANDSCAPE
;
dm
->
u1
.
s1
.
dmOrientation
=
DMORIENT_LANDSCAPE
;
sel
=
SendDlgItemMessageW
(
hDlg
,
cmb2
,
CB_GETCURSEL
,
0
,
0
);
if
(
sel
!=
CB_ERR
)
dm
->
u1
.
s1
.
dmPaperSize
=
SendDlgItemMessageW
(
hDlg
,
cmb2
,
CB_GETITEMDATA
,
sel
,
0
);
GlobalUnlock
(
pda
->
pdlg
.
hDevMode
);
GlobalUnlock
(
pda
->
pdlg
.
hDevMode
);
}
}
...
@@ -3002,7 +3008,7 @@ PRINTDLG_PS_WMCommandW(
...
@@ -3002,7 +3008,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
);
PRINTDLG_PS_UpdatePrintDlgW
(
pda
,
hDlg
);
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