Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fb61856b
Commit
fb61856b
authored
May 14, 2008
by
Igor Tarasov
Committed by
Alexandre Julliard
May 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix statusbar text alignment bug.
parent
ece5a047
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
commctrl.c
dlls/comctl32/commctrl.c
+20
-11
No files found.
dlls/comctl32/commctrl.c
View file @
fb61856b
...
...
@@ -535,18 +535,27 @@ void WINAPI DrawStatusTextW (HDC hdc, LPCRECT lprc, LPCWSTR text, UINT style)
if
(
text
)
{
int
oldbkmode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
UINT
align
=
DT_LEFT
;
if
(
*
text
==
'\t'
)
{
text
++
;
align
=
DT_CENTER
;
if
(
*
text
==
'\t'
)
{
text
++
;
align
=
DT_RIGHT
;
}
}
r
.
left
+=
3
;
int
strCnt
=
0
;
if
(
style
&
SBT_RTLREADING
)
FIXME
(
"Unsupported RTL style!
\n
"
);
DrawTextW
(
hdc
,
text
,
-
1
,
&
r
,
align
|
DT_VCENTER
|
DT_SINGLELINE
|
DT_NOPREFIX
);
FIXME
(
"Unsupported RTL style!
\n
"
);
r
.
left
+=
3
;
do
{
if
(
*
text
==
'\t'
)
{
if
(
strCnt
)
{
DrawTextW
(
hdc
,
text
-
strCnt
,
strCnt
,
&
r
,
align
|
DT_VCENTER
|
DT_SINGLELINE
|
DT_NOPREFIX
);
strCnt
=
0
;
}
if
(
align
==
DT_RIGHT
)
{
break
;
}
align
=
(
align
==
DT_LEFT
?
DT_CENTER
:
DT_RIGHT
);
}
else
{
strCnt
++
;
}
}
while
(
*
text
++
);
if
(
strCnt
)
DrawTextW
(
hdc
,
text
-
strCnt
,
-
1
,
&
r
,
align
|
DT_VCENTER
|
DT_SINGLELINE
|
DT_NOPREFIX
);
SetBkMode
(
hdc
,
oldbkmode
);
}
}
...
...
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