none
how to enable copy/paste functionality in a shell namespace extension ?

    Frage

  • How do I make it so copy and paste are enabled and handled by the shell namespace extension I am writing?  The extension I have is working in the center panel in windows explorer.  What do I do to make it so when a file or folder in the namespace is selected the copy/paste options on the file menu are enabled?

    thanks,

    Freitag, 15. Juni 2012 15:11

Antworten

  • For the class which represents your items, you should override IShellItem::GetAttributes and make sure you put the following items among the return attributes: 

    SFGAO_CANCOPY | SFGAO_CANMOVE 

    And in the folder containing the items you should override IShellFolder::GetAttributesOf method, and put SFGAO_DROPTARGET in the result attributes.

    You can find more details in the following links:

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb761138(v=vs.85).aspx

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb775068(v=vs.85).aspx

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb762589(v=vs.85).aspx



    Montag, 9. Juli 2012 14:08