static HRESULT ShellView_FillList(IShellViewImpl *This)
{
+ IShellFolderView *folderview = (IShellFolderView*)&This->lpvtblShellFolderView;
LPENUMIDLIST pEnumIDList;
LPITEMIDLIST pidl;
DWORD fetched;
/* sort the array */
DPA_Sort(hdpa, ShellView_CompareItems, (LPARAM)This->pSFParent);
- SendMessageW(This->hWndList, WM_SETREDRAW, FALSE, 0);
+ IShellFolderView_SetRedraw(folderview, FALSE);
DPA_DestroyCallback(hdpa, fill_list, This);
- SendMessageW(This->hWndList, WM_SETREDRAW, TRUE, 0);
+ IShellFolderView_SetRedraw(folderview, TRUE);
IEnumIDList_Release(pEnumIDList);
BOOL redraw)
{
IShellViewImpl *This = impl_from_IShellFolderView(iface);
- FIXME("(%p)->(%d) stub\n", This, redraw);
- return E_NOTIMPL;
+ TRACE("(%p)->(%d)\n", This, redraw);
+
+ SendMessageW(This->hWndList, WM_SETREDRAW, redraw, 0);
+
+ return S_OK;
}
static HRESULT WINAPI IShellFolderView_fnGetSelectedCount(
hr = IShellFolderView_MoveIcons(folderview, NULL);
ok(hr == E_NOTIMPL, "got (0x%08x)\n", hr);
+ /* ::SetRedraw without list created */
+ hr = IShellFolderView_SetRedraw(folderview, TRUE);
+ ok(hr == S_OK, "got (0x%08x)\n", hr);
+
IShellFolderView_Release(folderview);
IShellView_Release(view);