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
83d92d3e
Commit
83d92d3e
authored
May 19, 2003
by
Aric Stewart
Committed by
Alexandre Julliard
May 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we find the drag and drop functions before calling them.
parent
33cf3e0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
shlview.c
dlls/shell32/shlview.c
+8
-4
No files found.
dlls/shell32/shlview.c
View file @
83d92d3e
...
...
@@ -639,7 +639,7 @@ static LRESULT ShellView_OnCreate(IShellViewImpl * This)
}
}
if
(
GetShellOle
())
if
(
GetShellOle
()
&&
pRegisterDragDrop
)
{
if
(
SUCCEEDED
(
IShellFolder_CreateViewObject
(
This
->
pSFParent
,
This
->
hWnd
,
&
IID_IDropTarget
,
(
LPVOID
*
)
&
pdt
)))
{
...
...
@@ -1141,6 +1141,10 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
SHFree
((
LPITEMIDLIST
)
lpnmlv
->
lParam
);
/*delete the pidl because we made a copy of it*/
break
;
case
LVN_INSERTITEM
:
TRACE
(
"-- LVN_INSERTITEM (STUB)%p
\n
"
,
This
);
break
;
case
LVN_ITEMACTIVATE
:
TRACE
(
"-- LVN_ITEMACTIVATE %p
\n
"
,
This
);
OnStateChange
(
This
,
CDBOSC_SELCHANGE
);
/* the browser will get the IDataObject now */
...
...
@@ -1210,7 +1214,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
DWORD
dwAttributes
=
SFGAO_CANLINK
;
DWORD
dwEffect
=
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
;
if
(
GetShellOle
())
if
(
GetShellOle
()
&&
pDoDragDrop
)
{
if
(
SUCCEEDED
(
IShellFolder_GetUIObjectOf
(
This
->
pSFParent
,
This
->
hWnd
,
This
->
cidl
,
This
->
apidl
,
&
IID_IDataObject
,
0
,(
LPVOID
*
)
&
pda
)))
{
...
...
@@ -1361,7 +1365,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
break
;
default:
TRAC
E
(
"-- %p WM_COMMAND %x unhandled
\n
"
,
This
,
lpnmh
->
code
);
FIXM
E
(
"-- %p WM_COMMAND %x unhandled
\n
"
,
This
,
lpnmh
->
code
);
break
;
}
return
0
;
...
...
@@ -1434,7 +1438,7 @@ static LRESULT CALLBACK ShellView_WndProc(HWND hWnd, UINT uMessage, WPARAM wPara
case
WM_GETDLGCODE
:
return
SendMessageA
(
pThis
->
hWndList
,
uMessage
,
0
,
0
);
case
WM_DESTROY
:
if
(
GetShellOle
())
case
WM_DESTROY
:
if
(
GetShellOle
()
&&
pRevokeDragDrop
)
{
pRevokeDragDrop
(
pThis
->
hWnd
);
}
...
...
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