问题
For a shell extension (UI is similar to "New/" context menu), I need to create a file, select it and enter "rename" mode, so the user can adjust the default name.
Q: How do I enter "rename" mode for a file?
回答1:
The correct way to do this is to use IShellView::SelectItem with the SVSI_EDIT flag.
回答2:
Have you tried sending "F2" to the window?
来源:https://stackoverflow.com/questions/6258846/windows-explorer-shell-extension-create-file-and-enter-rename-mode