[PATCH] Add IFolderView::GetAutoArrange() implementation

Nikolay Sivov nsivov at codeweavers.com
Sun Apr 18 09:57:12 CDT 2010


---
 dlls/shell32/shlview.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index ca28b39..1d307b4 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -2875,9 +2875,13 @@ static HRESULT WINAPI IFView_GetDefaultSpacing(IFolderView *iface, POINT *pt)
 
 static HRESULT WINAPI IFView_GetAutoArrange(IFolderView *iface)
 {
-	IShellViewImpl *This = impl_from_IFolderView(iface);
-	FIXME("(%p), stub\n", This);
-	return E_NOTIMPL;
+    IShellViewImpl *This = impl_from_IFolderView(iface);
+    DWORD style;
+
+    TRACE("(%p)\n", This);
+
+    style = GetWindowLongW(This->hWndList, GWL_STYLE);
+    return style & LVS_AUTOARRANGE ? S_OK : S_FALSE;
 }
 
 static HRESULT WINAPI IFView_SelectItem(IFolderView *iface, int item, DWORD flags)
-- 
1.5.6.5


--=-dvDpyEccvqQd/1j0O0Rw--




More information about the wine-patches mailing list