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
adc416b7
Commit
adc416b7
authored
Jan 06, 2006
by
Thomas Weidenmueller
Committed by
Alexandre Julliard
Jan 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Some painting fixes for the syslink control.
parent
d1b375f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
syslink.c
dlls/comctl32/syslink.c
+16
-10
No files found.
dlls/comctl32/syslink.c
View file @
adc416b7
...
...
@@ -877,10 +877,10 @@ static LRESULT SYSLINK_Draw (SYSLINK_INFO *infoPtr, HDC hdc)
ExtTextOutW
(
hdc
,
bl
->
rc
.
left
,
bl
->
rc
.
top
,
ETO_OPAQUE
|
ETO_CLIPPED
,
&
bl
->
rc
,
tx
,
bl
->
nChars
,
NULL
);
if
((
Current
->
Type
==
slLink
)
&&
(
Current
->
u
.
Link
.
state
&
LIS_FOCUSED
)
&&
infoPtr
->
HasFocus
)
{
COLORREF
PrevColor
;
Prev
Color
=
SetBkColor
(
hdc
,
OldBk
Color
);
COLORREF
Prev
Text
Color
;
Prev
TextColor
=
SetTextColor
(
hdc
,
infoPtr
->
Text
Color
);
DrawFocusRect
(
hdc
,
&
bl
->
rc
);
Set
BkColor
(
hdc
,
Prev
Color
);
Set
TextColor
(
hdc
,
PrevText
Color
);
}
tx
+=
bl
->
nChars
;
n
-=
bl
->
nChars
+
bl
->
nSkip
;
...
...
@@ -907,8 +907,11 @@ static LRESULT SYSLINK_Paint (SYSLINK_INFO *infoPtr, HDC hdcParam)
PAINTSTRUCT
ps
;
hdc
=
hdcParam
?
hdcParam
:
BeginPaint
(
infoPtr
->
Self
,
&
ps
);
SYSLINK_Draw
(
infoPtr
,
hdc
);
if
(
!
hdcParam
)
EndPaint
(
infoPtr
->
Self
,
&
ps
);
if
(
hdc
)
{
SYSLINK_Draw
(
infoPtr
,
hdc
);
if
(
!
hdcParam
)
EndPaint
(
infoPtr
->
Self
,
&
ps
);
}
return
0
;
}
...
...
@@ -972,8 +975,7 @@ static LRESULT SYSLINK_SetText (SYSLINK_INFO *infoPtr, LPCWSTR Text)
/* clear the document */
SYSLINK_ClearDoc
(
infoPtr
);
textlen
=
lstrlenW
(
Text
);
if
(
Text
==
NULL
||
textlen
==
0
)
if
(
Text
==
NULL
||
(
textlen
=
lstrlenW
(
Text
))
==
0
)
{
return
TRUE
;
}
...
...
@@ -983,9 +985,13 @@ static LRESULT SYSLINK_SetText (SYSLINK_INFO *infoPtr, LPCWSTR Text)
{
/* Render text position and word wrapping in memory */
HDC
hdc
=
GetDC
(
infoPtr
->
Self
);
SYSLINK_Render
(
infoPtr
,
hdc
);
SYSLINK_Draw
(
infoPtr
,
hdc
);
ReleaseDC
(
infoPtr
->
Self
,
hdc
);
if
(
hdc
!=
NULL
)
{
SYSLINK_Render
(
infoPtr
,
hdc
);
ReleaseDC
(
infoPtr
->
Self
,
hdc
);
InvalidateRect
(
infoPtr
->
Self
,
NULL
,
TRUE
);
}
}
return
TRUE
;
...
...
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