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
6443ee58
Commit
6443ee58
authored
Nov 20, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Nov 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup the edit wndproc a bit.
parent
e5762652
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
treeview.c
dlls/comctl32/treeview.c
+8
-22
No files found.
dlls/comctl32/treeview.c
View file @
6443ee58
...
...
@@ -3445,31 +3445,23 @@ TREEVIEW_GetEditControl(TREEVIEW_INFO *infoPtr)
static
LRESULT
CALLBACK
TREEVIEW_Edit_SubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TREEVIEW_INFO
*
infoPtr
;
TREEVIEW_INFO
*
infoPtr
=
TREEVIEW_GetInfoPtr
(
GetParent
(
hwnd
))
;
BOOL
bCancel
=
FALSE
;
LRESULT
rc
;
switch
(
uMsg
)
{
case
WM_PAINT
:
{
LRESULT
rc
;
TREEVIEW_INFO
*
infoPtr
=
TREEVIEW_GetInfoPtr
(
GetParent
(
hwnd
));
TRACE
(
"WM_PAINT start
\n
"
);
rc
=
CallWindowProcA
(
infoPtr
->
wpEditOrig
,
hwnd
,
uMsg
,
wParam
,
TRACE
(
"WM_PAINT start
\n
"
);
rc
=
CallWindowProcA
(
infoPtr
->
wpEditOrig
,
hwnd
,
uMsg
,
wParam
,
lParam
);
TRACE
(
"WM_PAINT done
\n
"
);
return
rc
;
}
TRACE
(
"WM_PAINT done
\n
"
);
return
rc
;
case
WM_KILLFOCUS
:
{
TREEVIEW_INFO
*
infoPtr
=
TREEVIEW_GetInfoPtr
(
GetParent
(
hwnd
));
if
(
infoPtr
->
bIgnoreEditKillFocus
)
return
TRUE
;
break
;
}
case
WM_GETDLGCODE
:
return
DLGC_WANTARROWS
|
DLGC_WANTALLKEYS
;
...
...
@@ -3487,18 +3479,12 @@ TREEVIEW_Edit_SubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
/* fall through */
default:
{
TREEVIEW_INFO
*
infoPtr
=
TREEVIEW_GetInfoPtr
(
GetParent
(
hwnd
));
return
CallWindowProcA
(
infoPtr
->
wpEditOrig
,
hwnd
,
uMsg
,
wParam
,
lParam
);
}
return
CallWindowProcA
(
infoPtr
->
wpEditOrig
,
hwnd
,
uMsg
,
wParam
,
lParam
);
}
/* Processing TVN_ENDLABELEDIT message could kill the focus */
/* eg. Using a messagebox */
infoPtr
=
TREEVIEW_GetInfoPtr
(
GetParent
(
hwnd
));
infoPtr
->
bIgnoreEditKillFocus
=
TRUE
;
TREEVIEW_EndEditLabelNow
(
infoPtr
,
bCancel
||
!
infoPtr
->
bLabelChanged
);
infoPtr
->
bIgnoreEditKillFocus
=
FALSE
;
...
...
@@ -3570,7 +3556,7 @@ TREEVIEW_Command(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
default:
return
SendMessageA
(
GetParent
(
infoPtr
->
hwnd
)
,
WM_COMMAND
,
wParam
,
lParam
);
return
SendMessageA
(
infoPtr
->
hwndNotify
,
WM_COMMAND
,
wParam
,
lParam
);
}
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