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
10d3ea30
Commit
10d3ea30
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: Don't notify if listview edit box contents have not changed.
parent
9b057494
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
listview.c
dlls/comctl32/listview.c
+14
-1
No files found.
dlls/comctl32/listview.c
View file @
10d3ea30
...
@@ -4833,15 +4833,28 @@ static BOOL LISTVIEW_EndEditLabelT(LISTVIEW_INFO *infoPtr, LPWSTR pszText, BOOL
...
@@ -4833,15 +4833,28 @@ static BOOL LISTVIEW_EndEditLabelT(LISTVIEW_INFO *infoPtr, LPWSTR pszText, BOOL
{
{
HWND
hwndSelf
=
infoPtr
->
hwndSelf
;
HWND
hwndSelf
=
infoPtr
->
hwndSelf
;
NMLVDISPINFOW
dispInfo
;
NMLVDISPINFOW
dispInfo
;
BOOL
bSame
;
TRACE
(
"(pszText=%s, isW=%d)
\n
"
,
debugtext_t
(
pszText
,
isW
),
isW
);
TRACE
(
"(pszText=%s, isW=%d)
\n
"
,
debugtext_t
(
pszText
,
isW
),
isW
);
ZeroMemory
(
&
dispInfo
,
sizeof
(
dispInfo
));
ZeroMemory
(
&
dispInfo
,
sizeof
(
dispInfo
));
dispInfo
.
item
.
mask
=
LVIF_PARAM
|
LVIF_STATE
;
dispInfo
.
item
.
mask
=
LVIF_PARAM
|
LVIF_STATE
|
LVIF_TEXT
;
dispInfo
.
item
.
iItem
=
infoPtr
->
nEditLabelItem
;
dispInfo
.
item
.
iItem
=
infoPtr
->
nEditLabelItem
;
dispInfo
.
item
.
iSubItem
=
0
;
dispInfo
.
item
.
iSubItem
=
0
;
dispInfo
.
item
.
stateMask
=
~
0
;
dispInfo
.
item
.
stateMask
=
~
0
;
if
(
!
LISTVIEW_GetItemW
(
infoPtr
,
&
dispInfo
.
item
))
return
FALSE
;
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
{
LPWSTR
tmp
=
textdupTtoW
(
pszText
,
FALSE
);
bSame
=
(
lstrcmpW
(
dispInfo
.
item
.
pszText
,
tmp
)
==
0
);
textfreeT
(
tmp
,
FALSE
);
}
if
(
bSame
)
return
TRUE
;
/* add the text from the edit in */
/* add the text from the edit in */
dispInfo
.
item
.
mask
|=
LVIF_TEXT
;
dispInfo
.
item
.
mask
|=
LVIF_TEXT
;
dispInfo
.
item
.
pszText
=
pszText
;
dispInfo
.
item
.
pszText
=
pszText
;
...
...
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