Commit be6e022f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32: Forward SetRedraw to IFolderView2.

parent 7e0e82bc
...@@ -625,7 +625,7 @@ static INT CALLBACK fill_list( LPVOID ptr, LPVOID arg ) ...@@ -625,7 +625,7 @@ static INT CALLBACK fill_list( LPVOID ptr, LPVOID arg )
static HRESULT ShellView_FillList(IShellViewImpl *This) static HRESULT ShellView_FillList(IShellViewImpl *This)
{ {
IShellFolderView *folderview = &This->IShellFolderView_iface; IFolderView2 *folderview = &This->IFolderView2_iface;
LPENUMIDLIST pEnumIDList; LPENUMIDLIST pEnumIDList;
LPITEMIDLIST pidl; LPITEMIDLIST pidl;
DWORD fetched; DWORD fetched;
...@@ -658,9 +658,9 @@ static HRESULT ShellView_FillList(IShellViewImpl *This) ...@@ -658,9 +658,9 @@ static HRESULT ShellView_FillList(IShellViewImpl *This)
/* sort the array */ /* sort the array */
DPA_Sort(hdpa, ShellView_CompareItems, (LPARAM)This->pSFParent); DPA_Sort(hdpa, ShellView_CompareItems, (LPARAM)This->pSFParent);
IShellFolderView_SetRedraw(folderview, FALSE); IFolderView2_SetRedraw(folderview, FALSE);
DPA_DestroyCallback(hdpa, fill_list, This); DPA_DestroyCallback(hdpa, fill_list, This);
IShellFolderView_SetRedraw(folderview, TRUE); IFolderView2_SetRedraw(folderview, TRUE);
IEnumIDList_Release(pEnumIDList); IEnumIDList_Release(pEnumIDList);
...@@ -3038,8 +3038,9 @@ static HRESULT WINAPI FolderView2_GetGroupSubsetCount(IFolderView2 *iface, UINT ...@@ -3038,8 +3038,9 @@ static HRESULT WINAPI FolderView2_GetGroupSubsetCount(IFolderView2 *iface, UINT
static HRESULT WINAPI FolderView2_SetRedraw(IFolderView2 *iface, BOOL redraw) static HRESULT WINAPI FolderView2_SetRedraw(IFolderView2 *iface, BOOL redraw)
{ {
IShellViewImpl *This = impl_from_IFolderView2(iface); IShellViewImpl *This = impl_from_IFolderView2(iface);
FIXME("(%p)->(%d), stub\n", This, redraw); TRACE("(%p)->(%d)\n", This, redraw);
return E_NOTIMPL; SendMessageW(This->hWndList, WM_SETREDRAW, redraw, 0);
return S_OK;
} }
static HRESULT WINAPI FolderView2_IsMoveInSameFolder(IFolderView2 *iface) static HRESULT WINAPI FolderView2_IsMoveInSameFolder(IFolderView2 *iface)
...@@ -3245,10 +3246,7 @@ static HRESULT WINAPI IShellFolderView_fnSetRedraw( ...@@ -3245,10 +3246,7 @@ static HRESULT WINAPI IShellFolderView_fnSetRedraw(
{ {
IShellViewImpl *This = impl_from_IShellFolderView(iface); IShellViewImpl *This = impl_from_IShellFolderView(iface);
TRACE("(%p)->(%d)\n", This, redraw); TRACE("(%p)->(%d)\n", This, redraw);
return IFolderView2_SetRedraw(&This->IFolderView2_iface, redraw);
SendMessageW(This->hWndList, WM_SETREDRAW, redraw, 0);
return S_OK;
} }
static HRESULT WINAPI IShellFolderView_fnGetSelectedCount( static HRESULT WINAPI IShellFolderView_fnGetSelectedCount(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment