We have a windows namepace extension. I have a problem on windows 7 with
getting refresh on F5 when the focus is on tree view. My Shell view implements
IOleCommandTarget.
I am receiving Refresh through Exec method when Refresh is selected in the View
menu or Refresh button is clicked in the address bar. But if the focus is inside
the navigation pane (tree view) and I press F5 I don't get called. If the focus
is inside list view (my custom shell view) everything is fine and I do get
Refresh. If the focus is inside address bar or even Search field I still get F5
refresh.
What can I do to get the Refresh on F5 when the focus is in tree view?
Thank you,
Max
Hi,
At least in Windows 7, you won't get a signal even from the old
IShellFolderViewCB callback route (with the undocumented
SFVM_LISTREFRESHED /17 message).
But it appears that the Shell isn't actually refreshing your view. If
you examine the SHCONTF flags on the IShellFolder::EnumObjects call
after an F5 keypress, it indicates that it is merely updating the tree
(with SHCONTF_NAVIGATION_ENUM). Perhaps you can safely return your
existing folders cache?
regards
bjarke