David Hedberg : shell32: Handle INameSpaceTreeControlEvents:: OnSelectionChanged.
Alexandre Julliard
julliard at winehq.org
Thu Oct 21 10:50:49 CDT 2010
Module: wine
Branch: master
Commit: c143f805cd883ef5dc8ce95e2c7c15b3fd8a508f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c143f805cd883ef5dc8ce95e2c7c15b3fd8a508f
Author: David Hedberg <david.hedberg at gmail.com>
Date: Thu Oct 21 13:19:46 2010 +0200
shell32: Handle INameSpaceTreeControlEvents::OnSelectionChanged.
---
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 fed9ace..9cee1f0 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,
More information about the wine-cvs
mailing list