shell32: Handle INameSpaceTreeControlEvents::OnSelectionChanged.

David Hedberg david.hedberg at gmail.com
Thu Oct 21 06:19:46 CDT 2010


---
 dlls/shell32/ebrowser.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/ebrowser.c b/dlls/shell32/ebrowser.c
index fb27849..87ff578 100644
--- a/dlls/shell32/ebrowser.c
+++ b/dlls/shell32/ebrowser.c
@@ -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,
-- 
1.7.3.1




More information about the wine-patches mailing list