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
64ddc97b
Commit
64ddc97b
authored
Jul 31, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Aug 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: The titles are already converted to unicode so always use DrawTextW to write them.
parent
718a9d6d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
propsheet.c
dlls/comctl32/propsheet.c
+2
-16
No files found.
dlls/comctl32/propsheet.c
View file @
64ddc97b
...
...
@@ -3276,14 +3276,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd, HDC hdcParam)
if
(
ppshpage
->
dwFlags
&
PSP_USEHEADERTITLE
)
{
SetRect
(
&
r
,
20
,
10
,
0
,
0
);
if
(
HIWORD
(
ppshpage
->
pszHeaderTitle
))
{
if
(
psInfo
->
unicode
)
DrawTextW
(
hdc
,
(
LPWSTR
)
ppshpage
->
pszHeaderTitle
,
-
1
,
&
r
,
DT_LEFT
|
DT_SINGLELINE
|
DT_NOCLIP
);
else
DrawTextA
(
hdc
,
(
LPCSTR
)
ppshpage
->
pszHeaderTitle
,
-
1
,
&
r
,
DT_LEFT
|
DT_SINGLELINE
|
DT_NOCLIP
);
}
DrawTextW
(
hdc
,
ppshpage
->
pszHeaderTitle
,
-
1
,
&
r
,
DT_LEFT
|
DT_SINGLELINE
|
DT_NOCLIP
);
else
{
nLength
=
LoadStringW
(
ppshpage
->
hInstance
,
(
UINT_PTR
)
ppshpage
->
pszHeaderTitle
,
...
...
@@ -3300,14 +3293,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd, HDC hdcParam)
SelectObject
(
hdc
,
psInfo
->
hFont
);
SetRect
(
&
r
,
40
,
25
,
rzone
.
right
-
69
,
rzone
.
bottom
);
if
(
HIWORD
(
ppshpage
->
pszHeaderTitle
))
{
if
(
psInfo
->
unicode
)
DrawTextW
(
hdc
,
(
LPWSTR
)
ppshpage
->
pszHeaderSubTitle
,
-
1
,
&
r
,
DT_LEFT
|
DT_SINGLELINE
);
else
DrawTextA
(
hdc
,
(
LPCSTR
)
ppshpage
->
pszHeaderSubTitle
,
-
1
,
&
r
,
DT_LEFT
|
DT_SINGLELINE
);
}
DrawTextW
(
hdc
,
ppshpage
->
pszHeaderSubTitle
,
-
1
,
&
r
,
DT_LEFT
|
DT_SINGLELINE
);
else
{
nLength
=
LoadStringW
(
ppshpage
->
hInstance
,
(
UINT_PTR
)
ppshpage
->
pszHeaderSubTitle
,
...
...
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