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
0406a08c
Commit
0406a08c
authored
May 11, 2000
by
Aric Stewart
Committed by
Alexandre Julliard
May 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the drawing code after a label update. There were problems if
the new label is shorter that the old label fragments of the old label were left drawn.
parent
38db0980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
treeview.c
dlls/comctl32/treeview.c
+10
-4
No files found.
dlls/comctl32/treeview.c
View file @
0406a08c
...
...
@@ -2934,6 +2934,8 @@ TREEVIEW_EndEditLabelNow (HWND hwnd, WPARAM wParam, LPARAM lParam)
BOOL
bRevert
=
(
BOOL
)
wParam
;
BOOL
bReturn
=
!
bRevert
;
NMTVDISPINFOA
tvdi
;
RECT
itemRect
;
if
(
!
(
BOOL
)
wParam
)
/* wParam is set to true to cancel the edition */
{
...
...
@@ -3024,12 +3026,16 @@ TREEVIEW_EndEditLabelNow (HWND hwnd, WPARAM wParam, LPARAM lParam)
(
LPARAM
)
&
tvdi
);
}
}
}
ShowWindow
(
infoPtr
->
hwndEdit
,
SW_HIDE
);
EnableWindow
(
infoPtr
->
hwndEdit
,
FALSE
);
ShowWindow
(
infoPtr
->
hwndEdit
,
SW_HIDE
);
EnableWindow
(
infoPtr
->
hwndEdit
,
FALSE
);
infoPtr
->
editItem
=
0
;
}
/* update the window to eliminate fragments and the like */
TreeView_GetItemRect
(
hwnd
,
infoPtr
->
editItem
,
&
itemRect
,
FALSE
);
RedrawWindow
(
hwnd
,
&
itemRect
,
NULL
,
RDW_ERASE
|
RDW_INVALIDATE
|
RDW_UPDATENOW
);
infoPtr
->
editItem
=
0
;
return
bReturn
;
}
...
...
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