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
11d389e3
Commit
11d389e3
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: Use unicode APIs to access the paper combos.
parent
75829a95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
printdlg.c
dlls/comdlg32/printdlg.c
+23
-21
No files found.
dlls/comdlg32/printdlg.c
View file @
11d389e3
...
...
@@ -3125,23 +3125,24 @@ PRINTDLG_PS_WMCommandA(
}
break
;
case
cmb2
:
/* Paper combo */
if
(
msg
==
CBN_SELCHANGE
){
DWORD
paperword
=
SendDlgItemMessageA
(
hDlg
,
cmb2
,
CB_GETITEMDATA
,
SendDlgItemMessageA
(
hDlg
,
cmb2
,
CB_GETCURSEL
,
0
,
0
),
0
);
if
(
msg
==
CBN_SELCHANGE
)
{
DWORD
paperword
=
SendDlgItemMessageW
(
hDlg
,
cmb2
,
CB_GETITEMDATA
,
SendDlgItemMessageW
(
hDlg
,
cmb2
,
CB_GETCURSEL
,
0
,
0
),
0
);
if
(
paperword
!=
CB_ERR
)
{
pagesetup_set_papersize
(
pda
,
paperword
);
pagesetup_update_papersize
(
pda
);
PRINTDLG_PS_ChangePaperPrev
(
pda
);
}
else
FIXME
(
"could not get dialog text for papersize cmbbox?
\n
"
);
}
break
;
FIXME
(
"could not get dialog text for papersize cmbbox?
\n
"
);
}
break
;
case
cmb3
:
/* Paper Source */
if
(
msg
==
CBN_SELCHANGE
)
{
WORD
source
=
SendDlgItemMessage
A
(
hDlg
,
cmb3
,
CB_GETITEMDATA
,
SendDlgItemMessage
A
(
hDlg
,
cmb3
,
CB_GETCURSEL
,
0
,
0
),
0
);
WORD
source
=
SendDlgItemMessage
W
(
hDlg
,
cmb3
,
CB_GETITEMDATA
,
SendDlgItemMessage
W
(
hDlg
,
cmb3
,
CB_GETCURSEL
,
0
,
0
),
0
);
pagesetup_set_defaultsource
(
pda
,
source
);
}
break
;
...
...
@@ -3161,6 +3162,7 @@ PRINTDLG_PS_WMCommandA(
dm
=
GlobalLock
(
pda
->
dlga
->
hDevMode
);
DocumentPropertiesA
(
hDlg
,
hPrinter
,
PrinterName
,
dm
,
dm
,
DM_IN_BUFFER
|
DM_OUT_BUFFER
|
DM_IN_PROMPT
);
GlobalUnlock
(
pda
->
dlga
->
hDevMode
);
ClosePrinter
(
hPrinter
);
/* Changing paper */
pagesetup_update_papersize
(
pda
);
...
...
@@ -3169,20 +3171,20 @@ PRINTDLG_PS_WMCommandA(
/* Changing paper preview */
PRINTDLG_PS_ChangePaperPrev
(
pda
);
/* Selecting paper in combo */
count
=
SendDlgItemMessageA
(
hDlg
,
cmb2
,
CB_GETCOUNT
,
0
,
0
);
if
(
count
!=
CB_ERR
)
{
count
=
SendDlgItemMessageW
(
hDlg
,
cmb2
,
CB_GETCOUNT
,
0
,
0
);
if
(
count
!=
CB_ERR
)
{
WORD
paperword
=
pagesetup_get_papersize
(
pda
);
for
(
i
=
0
;
i
<
count
;
++
i
){
if
(
SendDlgItemMessageA
(
hDlg
,
cmb2
,
CB_GETITEMDATA
,
i
,
0
)
==
paperword
)
{
SendDlgItemMessageA
(
hDlg
,
cmb2
,
CB_SETCURSEL
,
i
,
0
);
break
;
}
}
}
GlobalUnlock
(
pda
->
dlga
->
hDevMode
);
break
;
}
for
(
i
=
0
;
i
<
count
;
i
++
)
{
if
(
SendDlgItemMessageW
(
hDlg
,
cmb2
,
CB_GETITEMDATA
,
i
,
0
)
==
paperword
)
{
SendDlgItemMessageW
(
hDlg
,
cmb2
,
CB_SETCURSEL
,
i
,
0
);
break
;
}
}
}
break
;
}
case
edt4
:
case
edt5
:
case
edt6
:
...
...
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