Author: akhaldi
Date: Mon Sep 26 15:43:19 2011
New Revision: 53863
URL:
http://svn.reactos.org/svn/reactos?rev=53863&view=rev
Log:
[SHELL32]
* Implemented CDefView::GetSpacing based on Wine. By Claudiu Mihail.
Modified:
trunk/reactos/dll/win32/shell32/shlview.cpp
Modified: trunk/reactos/dll/win32/shell32/shlview.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlview.…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shlview.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shlview.cpp [iso-8859-1] Mon Sep 26 15:43:19 2011
@@ -2406,7 +2406,19 @@
HRESULT STDMETHODCALLTYPE CDefView::GetSpacing(POINT *ppt)
{
- return E_NOTIMPL;
+ TRACE("(%p)->(%p)\n", this, ppt);
+
+ if (NULL == hWndList) return S_FALSE;
+
+ if (ppt)
+ {
+ const DWORD ret = SendMessageW(hWndList, LVM_GETITEMSPACING, 0, 0);
+
+ ppt->x = LOWORD(ret);
+ ppt->y = HIWORD(ret);
+ }
+
+ return S_OK;
}
HRESULT STDMETHODCALLTYPE CDefView::GetDefaultSpacing(POINT *ppt)