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
8b10dd2a
Commit
8b10dd2a
authored
Jan 14, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: We no longer need to update the dialog struct on exit as all of the…
comdlg32: We no longer need to update the dialog struct on exit as all of the information is up to date.
parent
3e43528a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
49 deletions
+0
-49
printdlg.c
dlls/comdlg32/printdlg.c
+0
-49
No files found.
dlls/comdlg32/printdlg.c
View file @
8b10dd2a
...
...
@@ -2568,53 +2568,6 @@ end:
return
retval
;
}
/****************************************************************************
* PRINTDLG_PS_UpdateDlgStructA
*
* Updates pda->dlga structure
* Function calls when user presses OK button
*
* PARAMS
* hDlg [in] main window dialog HANDLE
* pda [in/out] ptr to PageSetupDataA structure
*
* RETURNS
* TRUE
*/
static
BOOL
PRINTDLG_PS_UpdateDlgStructA
(
HWND
hDlg
,
PageSetupDataA
*
pda
)
{
DEVMODEA
*
dm
;
DWORD
paperword
;
dm
=
GlobalLock
(
pda
->
dlga
->
hDevMode
);
/* Save paper orientation into device context */
if
(
pda
->
dlga
->
ptPaperSize
.
x
>
pda
->
dlga
->
ptPaperSize
.
y
)
dm
->
u1
.
s1
.
dmOrientation
=
DMORIENT_LANDSCAPE
;
else
dm
->
u1
.
s1
.
dmOrientation
=
DMORIENT_PORTRAIT
;
/* Save paper size into the device context */
paperword
=
SendDlgItemMessageA
(
hDlg
,
cmb2
,
CB_GETITEMDATA
,
SendDlgItemMessageA
(
hDlg
,
cmb2
,
CB_GETCURSEL
,
0
,
0
),
0
);
if
(
paperword
!=
CB_ERR
)
dm
->
u1
.
s1
.
dmPaperSize
=
paperword
;
else
FIXME
(
"could not get dialog text for papersize cmbbox?
\n
"
);
/* Save paper source into the device context */
paperword
=
SendDlgItemMessageA
(
hDlg
,
cmb1
,
CB_GETITEMDATA
,
SendDlgItemMessageA
(
hDlg
,
cmb1
,
CB_GETCURSEL
,
0
,
0
),
0
);
if
(
paperword
!=
CB_ERR
)
dm
->
u1
.
s1
.
dmDefaultSource
=
paperword
;
else
FIXME
(
"could not get dialog text for papersize cmbbox?
\n
"
);
GlobalUnlock
(
pda
->
dlga
->
hDevMode
);
return
TRUE
;
}
static
BOOL
PRINTDLG_PS_UpdateDlgStructW
(
HWND
hDlg
,
PageSetupDataW
*
pdw
)
{
DEVNAMES
*
dn
;
...
...
@@ -2898,8 +2851,6 @@ PRINTDLG_PS_WMCommandA(
LOWORD
(
lParam
),
wParam
,
lParam
);
switch
(
id
)
{
case
IDOK
:
if
(
!
PRINTDLG_PS_UpdateDlgStructA
(
hDlg
,
pda
))
return
(
FALSE
);
EndDialog
(
hDlg
,
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