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
c46a5141
Commit
c46a5141
authored
May 24, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Draw focus rectangle only when visible.
parent
88f7fd5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
listview.c
dlls/comctl32/listview.c
+5
-3
No files found.
dlls/comctl32/listview.c
View file @
c46a5141
...
...
@@ -4305,6 +4305,7 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc, const RECT *prcEra
ITERATOR
i
;
HDC
hdcOrig
=
hdc
;
HBITMAP
hbmp
=
NULL
;
RANGE
range
;
LISTVIEW_DUMP
(
infoPtr
);
...
...
@@ -4370,11 +4371,11 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc, const RECT *prcEra
/* figure out what we need to draw */
iterator_visibleitems
(
&
i
,
infoPtr
,
hdc
);
range
=
iterator_range
(
&
i
);
/* send cache hint notification */
if
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
)
{
RANGE
range
=
iterator_range
(
&
i
);
NMLVCACHEHINT
nmlv
;
ZeroMemory
(
&
nmlv
,
sizeof
(
NMLVCACHEHINT
));
...
...
@@ -4392,8 +4393,9 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc, const RECT *prcEra
else
/* LVS_LIST, LVS_ICON or LVS_SMALLICON */
LISTVIEW_RefreshList
(
infoPtr
,
&
i
,
hdc
,
cdmode
);
/* if we have a focus rect, draw it */
if
(
infoPtr
->
bFocus
)
/* if we have a focus rect and it's visible, draw it */
if
(
infoPtr
->
bFocus
&&
range
.
lower
<=
infoPtr
->
nFocusedItem
&&
(
range
.
upper
-
1
)
>=
infoPtr
->
nFocusedItem
)
LISTVIEW_DrawFocusRect
(
infoPtr
,
hdc
);
}
iterator_destroy
(
&
i
);
...
...
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