shell32: Handle INameSpaceTreeControlEvents::OnSelectionChanged.

This commit is contained in:
David Hedberg 2010-10-21 13:19:46 +02:00 committed by Alexandre Julliard
parent 7f8ea7fffc
commit c143f805cd
1 changed files with 12 additions and 1 deletions

View File

@ -1809,8 +1809,19 @@ static HRESULT WINAPI NSTCEvents_fnOnSelectionChanged(INameSpaceTreeControlEvent
IShellItemArray *psiaSelection)
{
ExplorerBrowserImpl *This = impl_from_INameSpaceTreeControlEvents(iface);
IShellItem *psi;
HRESULT hr;
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,