EDN Admin
Well-known member
I have written a custom Explorer namespace extension to display and manipulate the contents of a "virtual" file system. In other words, the files and folder it displays are not real item on disk, but come from a web service. It uses the default
shell folder view and default context menus.
The namespace extension supports IDropTarget, allowing local files to be copied and pasted into it. Drag and drop operations work fine. Ive also taken care to check the keyboard state and right-click state during drops, so files can be either moved or copied.
For example, if the shift key is down, it does a move rather than a copy<span style="font-size:9px; line-height:13px .
<span style="font-size:9px; line-height:13px It also works fine if you select local files and click Copy, then go to my NSE and click Paste. However, if you select local files and click Cut, then go to my NSE, the Paste command is disabled. As mentioned
above, Im using the DefView and system-provided context menus, so I have no control over the Paste command. In short, copy/paste works, but cut/paste does not.
<span style="font-size:9px; line-height:13px Can anyone tell me what controls the enabled state of the system-provided Paste command, or what I need to do get it enabled within my NSE?
<span style="font-size:9px; line-height:13px Thank you,
<span style="font-size:9px; line-height:13px Adam
View the full article
shell folder view and default context menus.
The namespace extension supports IDropTarget, allowing local files to be copied and pasted into it. Drag and drop operations work fine. Ive also taken care to check the keyboard state and right-click state during drops, so files can be either moved or copied.
For example, if the shift key is down, it does a move rather than a copy<span style="font-size:9px; line-height:13px .
<span style="font-size:9px; line-height:13px It also works fine if you select local files and click Copy, then go to my NSE and click Paste. However, if you select local files and click Cut, then go to my NSE, the Paste command is disabled. As mentioned
above, Im using the DefView and system-provided context menus, so I have no control over the Paste command. In short, copy/paste works, but cut/paste does not.
<span style="font-size:9px; line-height:13px Can anyone tell me what controls the enabled state of the system-provided Paste command, or what I need to do get it enabled within my NSE?
<span style="font-size:9px; line-height:13px Thank you,
<span style="font-size:9px; line-height:13px Adam
View the full article