Exemplo n.º 1
0
            private static UInt32 createContextMenuFlags(ShellContextMenu shellContextMenu)
            {
                int flags = 0;

                if (shellContextMenu.AllowRename)
                {
                    flags |= SafeNativeMethods.CMF_CANRENAME;
                }
                if (shellContextMenu.ShowOnlyVerbs)
                {
                    flags |= SafeNativeMethods.CMF_VERBSONLY;
                }
                if (shellContextMenu.HideVerbs)
                {
                    flags |= SafeNativeMethods.CMF_NOVERBS;
                }
                if (shellContextMenu.ShowExtendedVerbs)
                {
                    flags |= SafeNativeMethods.CMF_EXTENDEDVERBS;
                }
                return((UInt32)flags);
            }
Exemplo n.º 2
0
 public internalShellContextMenu(ShellContextMenu shellContextMenu, IntPtr parent, Point pos)
 {
     this.shellContextMenu = shellContextMenu;
     this.parent           = parent;
     this.pos = pos;
 }