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
f118c64d
Commit
f118c64d
authored
Aug 25, 2010
by
David Hedberg
Committed by
Alexandre Julliard
Aug 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement CommDlgBrowser::OnDefaultCommand in the ExplorerBrowser control.
parent
59965f9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
2 deletions
+40
-2
ebrowser.c
dlls/shell32/ebrowser.c
+40
-2
No files found.
dlls/shell32/ebrowser.c
View file @
f118c64d
...
...
@@ -1082,8 +1082,46 @@ static HRESULT WINAPI ICommDlgBrowser3_fnOnDefaultCommand(ICommDlgBrowser3 *ifac
IShellView
*
shv
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
FIXME
(
"stub, %p (%p)
\n
"
,
This
,
shv
);
return
E_NOTIMPL
;
IDataObject
*
pdo
;
HRESULT
hr
;
HRESULT
ret
=
S_FALSE
;
TRACE
(
"%p (%p)
\n
"
,
This
,
shv
);
hr
=
IShellView_GetItemObject
(
shv
,
SVGIO_SELECTION
,
&
IID_IDataObject
,
(
void
**
)
&
pdo
);
if
(
SUCCEEDED
(
hr
))
{
FORMATETC
fmt
;
STGMEDIUM
medium
;
fmt
.
cfFormat
=
RegisterClipboardFormatW
(
CFSTR_SHELLIDLISTW
);
fmt
.
ptd
=
NULL
;
fmt
.
dwAspect
=
DVASPECT_CONTENT
;
fmt
.
lindex
=
-
1
;
fmt
.
tymed
=
TYMED_HGLOBAL
;
hr
=
IDataObject_GetData
(
pdo
,
&
fmt
,
&
medium
);
IDataObject_Release
(
pdo
);
if
(
SUCCEEDED
(
hr
))
{
LPIDA
pida
=
GlobalLock
(
medium
.
u
.
hGlobal
);
LPCITEMIDLIST
pidl_child
=
(
LPCITEMIDLIST
)
((
LPBYTE
)
pida
+
pida
->
aoffset
[
1
]);
/* Handle folders by browsing to them. */
if
(
_ILIsFolder
(
pidl_child
)
||
_ILIsDrive
(
pidl_child
)
||
_ILIsSpecialFolder
(
pidl_child
))
{
IExplorerBrowser_BrowseToIDList
((
IExplorerBrowser
*
)
This
,
pidl_child
,
SBSP_RELATIVE
);
ret
=
S_OK
;
}
GlobalUnlock
(
medium
.
u
.
hGlobal
);
GlobalFree
(
medium
.
u
.
hGlobal
);
}
else
ERR
(
"Failed to get data from IDataObject.
\n
"
);
}
else
ERR
(
"Failed to get IDataObject.
\n
"
);
return
ret
;
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnOnStateChange
(
ICommDlgBrowser3
*
iface
,
IShellView
*
shv
,
ULONG
uChange
)
...
...
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