BExplorer.Shell.ShellContextMenu.Populate C# (CSharp) Method

Populate() public method

Populates a Menu with the context menu items for a shell item.
If this method is being used to populate a Form's main menu then you need to call HandleMenuMessage in the Form's message handler.
public Populate ( Menu menu, CMF additionalFlags ) : void
menu System.Windows.Forms.Menu The menu to populate.
additionalFlags CMF
return void
    public void Populate(Menu menu, CMF additionalFlags) {
      m_ComInterface.QueryContextMenu(menu.Handle, 0, (int)m_CmdFirst, int.MaxValue, CMF.EXPLORE | additionalFlags | (Control.ModifierKeys == Keys.Shift ? CMF.EXTENDEDVERBS : 0));
    }