shell32: Handle INameSpaceTreeControlEvents::OnSelectionChanged.
This commit is contained in:
parent
7f8ea7fffc
commit
c143f805cd
|
@ -1809,8 +1809,19 @@ static HRESULT WINAPI NSTCEvents_fnOnSelectionChanged(INameSpaceTreeControlEvent
|
||||||
IShellItemArray *psiaSelection)
|
IShellItemArray *psiaSelection)
|
||||||
{
|
{
|
||||||
ExplorerBrowserImpl *This = impl_from_INameSpaceTreeControlEvents(iface);
|
ExplorerBrowserImpl *This = impl_from_INameSpaceTreeControlEvents(iface);
|
||||||
|
IShellItem *psi;
|
||||||
|
HRESULT hr;
|
||||||
TRACE("%p (%p)\n", This, psiaSelection);
|
TRACE("%p (%p)\n", This, psiaSelection);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
hr = IShellItemArray_GetItemAt(psiaSelection, 0, &psi);
|
||||||
|
if(SUCCEEDED(hr))
|
||||||
|
{
|
||||||
|
hr = IExplorerBrowser_BrowseToObject((IExplorerBrowser*)This,
|
||||||
|
(IUnknown*)psi, SBSP_DEFBROWSER);
|
||||||
|
IShellItem_Release(psi);
|
||||||
|
}
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI NSTCEvents_fnOnKeyboardInput(INameSpaceTreeControlEvents *iface,
|
static HRESULT WINAPI NSTCEvents_fnOnKeyboardInput(INameSpaceTreeControlEvents *iface,
|
||||||
|
|
Loading…
Reference in New Issue