Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
52e0e9c1
Commit
52e0e9c1
authored
22 years ago
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Complete implementation for DrawStatusText{A,W}.
parent
aba59471
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/comctl32/commctrl.c
+19
-12
19 additions, 12 deletions
dlls/comctl32/commctrl.c
with
19 additions
and
12 deletions
dlls/comctl32/commctrl.c
+
19
−
12
View file @
52e0e9c1
...
...
@@ -412,26 +412,34 @@ GetEffectiveClientRect (HWND hwnd, LPRECT lpRect, LPINT lpInfo)
* (will be written ...)
*/
VOID
WINAPI
DrawStatusTextW
(
HDC
hdc
,
LPRECT
lprc
,
LPCWSTR
text
,
UINT
style
)
void
WINAPI
DrawStatusTextW
(
HDC
hdc
,
LPRECT
lprc
,
LPCWSTR
text
,
UINT
style
)
{
RECT
r
=
*
lprc
;
UINT
border
=
BDR_SUNKENOUTER
;
if
(
style
&
SBT_POPOUT
)
border
=
BDR_RAISEDOUTER
;
border
=
BDR_RAISEDOUTER
;
else
if
(
style
&
SBT_NOBORDERS
)
border
=
0
;
border
=
0
;
DrawEdge
(
hdc
,
&
r
,
border
,
BF_RECT
|
BF_ADJUST
|
BF_MIDDLE
);
DrawEdge
(
hdc
,
&
r
,
border
,
BF_RECT
|
BF_ADJUST
);
/* now draw text */
if
(
text
)
{
int
oldbkmode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
r
.
left
+=
3
;
DrawTextW
(
hdc
,
text
,
lstrlenW
(
text
),
&
r
,
DT_LEFT
|
DT_VCENTER
|
DT_SINGLELINE
);
if
(
oldbkmode
!=
TRANSPARENT
)
int
oldbkmode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
UINT
align
=
DT_LEFT
;
if
(
*
text
==
L'\t'
)
{
text
++
;
align
=
DT_CENTER
;
if
(
*
text
==
L'\t'
)
{
text
++
;
align
=
DT_RIGHT
;
}
}
r
.
left
+=
3
;
if
(
style
&
SBT_RTLREADING
)
FIXME
(
"Usupported RTL style!"
);
DrawTextW
(
hdc
,
text
,
-
1
,
&
r
,
align
|
DT_VCENTER
|
DT_SINGLELINE
);
SetBkMode
(
hdc
,
oldbkmode
);
}
}
...
...
@@ -453,8 +461,7 @@ DrawStatusTextW (HDC hdc, LPRECT lprc, LPCWSTR text, UINT style)
* No return value.
*/
VOID
WINAPI
DrawStatusTextA
(
HDC
hdc
,
LPRECT
lprc
,
LPCSTR
text
,
UINT
style
)
void
WINAPI
DrawStatusTextA
(
HDC
hdc
,
LPRECT
lprc
,
LPCSTR
text
,
UINT
style
)
{
INT
len
;
LPWSTR
textW
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment