3

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?

peterchen
  • 40,917
  • 20
  • 104
  • 186

2 Answers2

5

The correct way to do this is to use IShellView::SelectItem with the SVSI_EDIT flag.

Paul Accisano
  • 1,416
  • 1
  • 14
  • 25
0

Have you tried sending "F2" to the window?

NGLN
  • 43,011
  • 8
  • 105
  • 200
  • Sending keystrokes isn't really the solution I'm looking for - besides, this would require selecting the file first. Further problems: refresh and wait for the new file to be actually listed, and selecting the file – peterchen Jun 08 '11 at 05:55