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
2881b171
Commit
2881b171
authored
Oct 29, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Oct 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Reset nEditLabelItem in LISTVIEW_EndEditLabelT.
parent
10d3ea30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
listview.c
dlls/comctl32/listview.c
+7
-13
No files found.
dlls/comctl32/listview.c
View file @
2881b171
...
...
@@ -4833,18 +4833,20 @@ static BOOL LISTVIEW_EndEditLabelT(LISTVIEW_INFO *infoPtr, LPWSTR pszText, BOOL
{
HWND
hwndSelf
=
infoPtr
->
hwndSelf
;
NMLVDISPINFOW
dispInfo
;
INT
editedItem
=
infoPtr
->
nEditLabelItem
;
BOOL
bSame
;
TRACE
(
"(pszText=%s, isW=%d)
\n
"
,
debugtext_t
(
pszText
,
isW
),
isW
);
infoPtr
->
nEditLabelItem
=
-
1
;
ZeroMemory
(
&
dispInfo
,
sizeof
(
dispInfo
));
dispInfo
.
item
.
mask
=
LVIF_PARAM
|
LVIF_STATE
|
LVIF_TEXT
;
dispInfo
.
item
.
iItem
=
infoPtr
->
nEditLabel
Item
;
dispInfo
.
item
.
iItem
=
edited
Item
;
dispInfo
.
item
.
iSubItem
=
0
;
dispInfo
.
item
.
stateMask
=
~
0
;
if
(
!
LISTVIEW_GetItemW
(
infoPtr
,
&
dispInfo
.
item
))
return
FALSE
;
/* Don't bother continuing if text has not changed */
if
(
isW
)
bSame
=
(
lstrcmpW
(
dispInfo
.
item
.
pszText
,
pszText
)
==
0
);
else
...
...
@@ -4868,18 +4870,18 @@ static BOOL LISTVIEW_EndEditLabelT(LISTVIEW_INFO *infoPtr, LPWSTR pszText, BOOL
if
(
!
(
infoPtr
->
dwStyle
&
LVS_OWNERDATA
))
{
HDPA
hdpaSubItems
=
DPA_GetPtr
(
infoPtr
->
hdpaItems
,
infoPtr
->
nEditLabel
Item
);
HDPA
hdpaSubItems
=
DPA_GetPtr
(
infoPtr
->
hdpaItems
,
edited
Item
);
ITEM_INFO
*
lpItem
=
DPA_GetPtr
(
hdpaSubItems
,
0
);
if
(
lpItem
&&
lpItem
->
hdr
.
pszText
==
LPSTR_TEXTCALLBACKW
)
{
LISTVIEW_InvalidateItem
(
infoPtr
,
infoPtr
->
nEditLabel
Item
);
LISTVIEW_InvalidateItem
(
infoPtr
,
edited
Item
);
return
TRUE
;
}
}
ZeroMemory
(
&
dispInfo
,
sizeof
(
dispInfo
));
dispInfo
.
item
.
mask
=
LVIF_TEXT
;
dispInfo
.
item
.
iItem
=
infoPtr
->
nEditLabel
Item
;
dispInfo
.
item
.
iItem
=
edited
Item
;
dispInfo
.
item
.
iSubItem
=
0
;
dispInfo
.
item
.
pszText
=
pszText
;
dispInfo
.
item
.
cchTextMax
=
textlenT
(
pszText
,
isW
);
...
...
@@ -8614,7 +8616,6 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
{
LVHITTESTINFO
lvHitTestInfo
;
static
BOOL
bGroupSelect
=
TRUE
;
BOOL
bReceivedFocus
=
FALSE
;
POINT
pt
=
{
x
,
y
};
INT
nItem
;
...
...
@@ -8623,9 +8624,6 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
/* send NM_RELEASEDCAPTURE notification */
if
(
!
notify
(
infoPtr
,
NM_RELEASEDCAPTURE
))
return
0
;
if
(
!
infoPtr
->
bFocus
)
bReceivedFocus
=
TRUE
;
/* set left button down flag and record the click position */
infoPtr
->
bLButtonDown
=
TRUE
;
infoPtr
->
ptClickPos
=
pt
;
...
...
@@ -8636,7 +8634,6 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
nItem
=
LISTVIEW_HitTest
(
infoPtr
,
&
lvHitTestInfo
,
TRUE
,
TRUE
);
TRACE
(
"at %s, nItem=%d
\n
"
,
wine_dbgstr_point
(
&
pt
),
nItem
);
infoPtr
->
nEditLabelItem
=
-
1
;
if
((
nItem
>=
0
)
&&
(
nItem
<
infoPtr
->
nItemCount
))
{
if
((
infoPtr
->
dwLvExStyle
&
LVS_EX_CHECKBOXES
)
&&
(
lvHitTestInfo
.
flags
&
LVHT_ONITEMSTATEICON
))
...
...
@@ -8705,9 +8702,6 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
ReleaseCapture
();
}
if
(
bReceivedFocus
)
infoPtr
->
nEditLabelItem
=
-
1
;
return
0
;
}
...
...
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