peterchen
peterchen

Reputation: 41096

Windows Explorer Shell Extension: create file and enter "rename" mode

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?

Upvotes: 3

Views: 891

Answers (2)

Paul Accisano
Paul Accisano

Reputation: 1476

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

Upvotes: 5

NGLN
NGLN

Reputation: 43649

Have you tried sending "F2" to the window?

Upvotes: 0

Related Questions