|
|
|
date: Wed, 18 Jun 2008 02:42:28 -0700 (PDT),
group: microsoft.public.platformsdk.shell
back
Re: Extra context menu entry 'paste' in shell extn icon
On Jun 20, 6:30 pm, "Jim Barry" wrote:
> Anu wrote:
> > I have a shell extension for which i have my own separate context
> > menu..
> > when i register the nse, at the icon level, i see an extra entry
> > 'Paste' in the context menu..this context menu also has the entries
> > added by me in separate handler..how can i remove this paste entry
> > from context menu..this apperas only when i right click the icon of my
> > nse and no where else.
>
> The shell adds the "Paste" item if your drop target (as returned by CreateViewObject) returns any drop effect flags from its IDropTarget::DragEnter method. To prevent the "Paste" item from appearing, either return DROPEFFECT_NONE from DragEnter, or don't expose IDropTarget at all. However, I think it's much better to handle the shell's "Paste" command (by implementing IDropTarget::Drop) instead of adding your own menu item.
>
> --
> Jim Barry, Microsoft MVP
Thanks a lot.
It worked.
Rgds,
Anu
date: Sun, 22 Jun 2008 23:37:46 -0700 (PDT)
author: Anu
|
|