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
7d996fb7
Commit
7d996fb7
authored
Jan 20, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jan 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Rename PRINTDLG_PS_ChangePrinterA to better reflect its function.
parent
bb983c82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
printdlg.c
dlls/comdlg32/printdlg.c
+10
-13
No files found.
dlls/comdlg32/printdlg.c
View file @
7d996fb7
...
...
@@ -2783,29 +2783,26 @@ PRINTDLG_PS_ChangeActivePrinterA(LPSTR name, PageSetupDataA *pda){
}
/****************************************************************************************
*
PRINTDLG_PS_ChangePrinterA
*
pagesetup_init_combos
*
* Fills Printers, Paper and Source combo
* Fills Printers, Paper and Source combo
s
*
* RETURNS
* TRUE
*/
static
BOOL
PRINTDLG_PS_ChangePrinterA
(
HWND
hDlg
,
PageSetupDataA
*
pda
)
{
static
void
pagesetup_init_combos
(
HWND
hDlg
,
PageSetupDataA
*
pda
)
{
DEVNAMES
*
dn
;
DEVMODEA
*
dm
;
LPSTR
devname
,
portname
;
dn
=
GlobalLock
(
pda
->
dlga
->
hDevNames
);
dm
=
GlobalLock
(
pda
->
dlga
->
hDevMode
);
devname
=
((
char
*
)
dn
)
+
dn
->
wDeviceOffset
;
portname
=
((
char
*
)
dn
)
+
dn
->
wOutputOffset
;
devname
=
((
char
*
)
dn
)
+
dn
->
wDeviceOffset
;
portname
=
((
char
*
)
dn
)
+
dn
->
wOutputOffset
;
PRINTDLG_SetUpPrinterListComboA
(
hDlg
,
cmb1
,
devname
);
PRINTDLG_SetUpPaperComboBoxA
(
hDlg
,
cmb2
,
devname
,
portname
,
dm
);
PRINTDLG_SetUpPaperComboBoxA
(
hDlg
,
cmb3
,
devname
,
portname
,
dm
);
GlobalUnlock
(
pda
->
dlga
->
hDevNames
);
GlobalUnlock
(
pda
->
dlga
->
hDevMode
);
return
TRUE
;
}
static
void
PRINTDLG_PS_SetOrientationW
(
HWND
hDlg
,
PageSetupDataW
*
pdw
)
...
...
@@ -3048,7 +3045,7 @@ PRINTDLG_PS_WMCommandA(
{
pda
->
dlga
->
hDevNames
=
prnt
.
hDevNames
;
pda
->
dlga
->
hDevMode
=
prnt
.
hDevMode
;
PRINTDLG_PS_ChangePrinterA
(
hDlg
,
pda
);
pagesetup_init_combos
(
hDlg
,
pda
);
}
return
TRUE
;
}
...
...
@@ -3069,7 +3066,7 @@ PRINTDLG_PS_WMCommandA(
char
crPrinterName
[
256
];
GetDlgItemTextA
(
hDlg
,
id
,
crPrinterName
,
255
);
PRINTDLG_PS_ChangeActivePrinterA
(
crPrinterName
,
pda
);
PRINTDLG_PS_ChangePrinterA
(
hDlg
,
pda
);
pagesetup_init_combos
(
hDlg
,
pda
);
}
break
;
case
cmb2
:
/* Paper combo */
...
...
@@ -3500,7 +3497,7 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
/* filling combos: printer, paper, source. selecting current printer (from DEVMODEA) */
PRINTDLG_PS_ChangePrinterA
(
hDlg
,
pda
);
pagesetup_init_combos
(
hDlg
,
pda
);
pagesetup_update_papersize
(
pda
);
pagesetup_set_defaultsource
(
pda
,
DMBIN_FORMSOURCE
);
/* FIXME: This is the auto select bin. Is this correct? */
...
...
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