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
a79cc39f
Commit
a79cc39f
authored
Jun 13, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Authors: Chris Morgan <cmorgan@wpi.edu>, James Abbatiello <abbeyj@wpi.edu>
Fixes a problem when using STATUSBAR_SetText() to toggle SBT_OWNERDRAW
parent
49080d3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
status.c
dlls/comctl32/status.c
+12
-8
No files found.
dlls/comctl32/status.c
View file @
a79cc39f
...
...
@@ -647,20 +647,22 @@ STATUSBAR_SetTextA (HWND hwnd, WPARAM wParam, LPARAM lParam)
else
part
=
&
self
->
parts
[
part_num
];
if
(
!
part
)
return
FALSE
;
part
->
style
=
style
;
if
(
!
(
part
->
style
&
SBT_OWNERDRAW
)
&&
part
->
text
)
COMCTL32_Free
(
part
->
text
);
part
->
text
=
0
;
if
(
style
&
SBT_OWNERDRAW
)
{
part
->
text
=
(
LPWSTR
)
text
;
}
else
{
/* duplicate string */
if
(
part
->
text
)
COMCTL32_Free
(
part
->
text
);
part
->
text
=
0
;
if
(
text
&&
(
len
=
lstrlenA
(
text
)))
{
part
->
text
=
COMCTL32_Alloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
lstrcpyAtoW
(
part
->
text
,
text
);
}
}
part
->
style
=
style
;
hdc
=
GetDC
(
hwnd
);
STATUSBAR_RefreshPart
(
hwnd
,
part
,
hdc
);
...
...
@@ -688,20 +690,22 @@ STATUSBAR_SetTextW (HWND hwnd, WPARAM wParam, LPARAM lParam)
else
part
=
&
self
->
parts
[
part_num
];
if
(
!
part
)
return
FALSE
;
part
->
style
=
style
;
if
(
!
(
part
->
style
&
SBT_OWNERDRAW
)
&&
part
->
text
)
COMCTL32_Free
(
part
->
text
);
part
->
text
=
0
;
if
(
style
&
SBT_OWNERDRAW
)
{
part
->
text
=
text
;
}
else
{
/* duplicate string */
if
(
part
->
text
)
COMCTL32_Free
(
part
->
text
);
part
->
text
=
0
;
if
(
text
&&
(
len
=
lstrlenW
(
text
)))
{
part
->
text
=
COMCTL32_Alloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
lstrcpyW
(
part
->
text
,
text
);
}
}
part
->
style
=
style
;
hdc
=
GetDC
(
hwnd
);
STATUSBAR_RefreshPart
(
hwnd
,
part
,
hdc
);
...
...
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