Windows Explorer Shell Extension: create file and enter “rename” mode

孤者浪人 提交于 2019-12-12 09:52:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!