From 602f0c10c78c880608ce0346e3315e51f3fcc442 Mon Sep 17 00:00:00 2001 From: Jason Edmeades Date: Fri, 19 Aug 2005 10:02:51 +0000 Subject: [PATCH] Handle context menu->refresh, and F5 to initiate a refresh of the file dialog. --- dlls/shell32/shlview.c | 7 +++++++ dlls/shell32/shv_bg_cmenu.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index e663cc444a1..a024933797f 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -1506,6 +1506,13 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn /* free pidl array memory */ HeapFree(GetProcessHeap(), 0, pItems); } + + /* Initiate a refresh */ + else if(plvKeyDown->wVKey == VK_F5) + { + IShellView_Refresh((IShellView*)This); + } + else FIXME("LVN_KEYDOWN key=0x%08x\n",plvKeyDown->wVKey); } diff --git a/dlls/shell32/shv_bg_cmenu.c b/dlls/shell32/shv_bg_cmenu.c index 885b5604dd4..00518f6f460 100644 --- a/dlls/shell32/shv_bg_cmenu.c +++ b/dlls/shell32/shv_bg_cmenu.c @@ -361,6 +361,10 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand( { switch(LOWORD(lpcmi->lpVerb)) { + case FCIDM_SHVIEW_REFRESH: + if (lpSV) IShellView_Refresh(lpSV); + break; + case FCIDM_SHVIEW_NEWFOLDER: DoNewFolder(iface, lpSV); break;