Handle context menu->refresh, and F5 to initiate a refresh of the file

dialog.
This commit is contained in:
Jason Edmeades 2005-08-19 10:02:51 +00:00 committed by Alexandre Julliard
parent 8f8ec2adcc
commit 602f0c10c7
2 changed files with 11 additions and 0 deletions

View File

@ -1506,6 +1506,13 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
/* free pidl array memory */ /* free pidl array memory */
HeapFree(GetProcessHeap(), 0, pItems); HeapFree(GetProcessHeap(), 0, pItems);
} }
/* Initiate a refresh */
else if(plvKeyDown->wVKey == VK_F5)
{
IShellView_Refresh((IShellView*)This);
}
else else
FIXME("LVN_KEYDOWN key=0x%08x\n",plvKeyDown->wVKey); FIXME("LVN_KEYDOWN key=0x%08x\n",plvKeyDown->wVKey);
} }

View File

@ -361,6 +361,10 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
{ {
switch(LOWORD(lpcmi->lpVerb)) switch(LOWORD(lpcmi->lpVerb))
{ {
case FCIDM_SHVIEW_REFRESH:
if (lpSV) IShellView_Refresh(lpSV);
break;
case FCIDM_SHVIEW_NEWFOLDER: case FCIDM_SHVIEW_NEWFOLDER:
DoNewFolder(iface, lpSV); DoNewFolder(iface, lpSV);
break; break;