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
39669fa8
Commit
39669fa8
authored
May 14, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SetDlgItemText instead of sending a WM_SETTEXT.
parent
ec2f9615
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
printdlg.c
dlls/commdlg/printdlg.c
+12
-15
No files found.
dlls/commdlg/printdlg.c
View file @
39669fa8
...
...
@@ -951,17 +951,16 @@ static void PRINTDLG_UpdatePrinterInfoTextsA(HWND hDlg, LPPRINTER_INFO_2A pi)
LoadStringA
(
COMDLG32_hInstance
,
PD32_PRINTER_STATUS_READY
,
ResourceString
,
255
);
strcat
(
StatusMsg
,
ResourceString
);
SendDlgItemMessageA
(
hDlg
,
stc12
,
WM_SETTEXT
,
0
,
(
LPARAM
)
StatusMsg
);
SetDlgItemTextA
(
hDlg
,
stc12
,
StatusMsg
);
/* set all other printer info texts */
SendDlgItemMessageA
(
hDlg
,
stc11
,
WM_SETTEXT
,
0
,
(
LPARAM
)
pi
->
pDriverName
);
SetDlgItemTextA
(
hDlg
,
stc11
,
pi
->
pDriverName
);
if
(
pi
->
pLocation
!=
NULL
&&
pi
->
pLocation
[
0
]
!=
'\0'
)
Se
ndDlgItemMessageA
(
hDlg
,
stc14
,
WM_SETTEXT
,
0
,(
LPARAM
)
pi
->
pLocation
);
Se
tDlgItemTextA
(
hDlg
,
stc14
,
pi
->
pLocation
);
else
SendDlgItemMessageA
(
hDlg
,
stc14
,
WM_SETTEXT
,
0
,(
LPARAM
)
pi
->
pPortName
);
SendDlgItemMessageA
(
hDlg
,
stc13
,
WM_SETTEXT
,
0
,
(
LPARAM
)(
pi
->
pComment
?
pi
->
pComment
:
""
));
SetDlgItemTextA
(
hDlg
,
stc14
,
pi
->
pPortName
);
SetDlgItemTextA
(
hDlg
,
stc13
,
pi
->
pComment
?
pi
->
pComment
:
""
);
return
;
}
...
...
@@ -969,6 +968,7 @@ static void PRINTDLG_UpdatePrinterInfoTextsW(HWND hDlg, LPPRINTER_INFO_2W pi)
{
WCHAR
StatusMsg
[
256
];
WCHAR
ResourceString
[
256
];
static
const
WCHAR
emptyW
[]
=
{
0
};
int
i
;
/* Status Message */
...
...
@@ -988,18 +988,15 @@ static void PRINTDLG_UpdatePrinterInfoTextsW(HWND hDlg, LPPRINTER_INFO_2W pi)
LoadStringW
(
COMDLG32_hInstance
,
PD32_PRINTER_STATUS_READY
,
ResourceString
,
255
);
lstrcatW
(
StatusMsg
,
ResourceString
);
SendDlgItemMessageW
(
hDlg
,
stc12
,
WM_SETTEXT
,
0
,
(
LPARAM
)
StatusMsg
);
SetDlgItemTextW
(
hDlg
,
stc12
,
StatusMsg
);
/* set all other printer info texts */
Se
ndDlgItemMessageW
(
hDlg
,
stc11
,
WM_SETTEXT
,
0
,
(
LPARAM
)
pi
->
pDriverName
);
Se
tDlgItemTextW
(
hDlg
,
stc11
,
pi
->
pDriverName
);
if
(
pi
->
pLocation
!=
NULL
&&
pi
->
pLocation
[
0
]
!=
'\0'
)
Se
ndDlgItemMessageW
(
hDlg
,
stc14
,
WM_SETTEXT
,
0
,(
LPARAM
)
pi
->
pLocation
);
Se
tDlgItemTextW
(
hDlg
,
stc14
,
pi
->
pLocation
);
else
SendDlgItemMessageW
(
hDlg
,
stc14
,
WM_SETTEXT
,
0
,(
LPARAM
)
pi
->
pPortName
);
SendDlgItemMessageW
(
hDlg
,
stc13
,
WM_SETTEXT
,
0
,
(
LPARAM
)(
pi
->
pComment
?
pi
->
pComment
:
(
LPCWSTR
)
"
\0\0
"
));
return
;
SetDlgItemTextW
(
hDlg
,
stc14
,
pi
->
pPortName
);
SetDlgItemTextW
(
hDlg
,
stc13
,
pi
->
pComment
?
pi
->
pComment
:
emptyW
);
}
...
...
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