BCGControlBar Library for .NET
BuildCommandBarMenu(PopupMenuBar,Boolean,Boolean,Boolean) Method




The pop-up menu to add specified items.
Indicates whether the Customize Button will be added to the pop-up menu.
Indicates if all menu items from the specified pop-up menu will be removed before adding another items.
Indicates if we can manage the visibility of the command bar by the specified pop-up menu.
Adds to the  pop-up menu items with the names of the command bar from collection and a customize button to the specified popup menu. Serves  for managing a visibility of the command bars and customizing.
Syntax
'Declaration
 
Public Overloads Overridable Sub BuildCommandBarMenu( _
   ByVal popup As PopupMenuBar, _
   ByVal addCustomizeButton As Boolean, _
   ByVal clearCollection As Boolean, _
   ByVal internalProcessing As Boolean _
) 
'Usage
 
Dim instance As CommandBarManager
Dim popup As PopupMenuBar
Dim addCustomizeButton As Boolean
Dim clearCollection As Boolean
Dim internalProcessing As Boolean
 
instance.BuildCommandBarMenu(popup, addCustomizeButton, clearCollection, internalProcessing)
public virtual void BuildCommandBarMenu( 
   PopupMenuBar popup,
   bool addCustomizeButton,
   bool clearCollection,
   bool internalProcessing
)
public: virtual void BuildCommandBarMenu( 
   PopupMenuBar* popup,
   bool addCustomizeButton,
   bool clearCollection,
   bool internalProcessing
) 
public:
virtual void BuildCommandBarMenu( 
   PopupMenuBar^ popup,
   bool addCustomizeButton,
   bool clearCollection,
   bool internalProcessing
) 

Parameters

popup
The pop-up menu to add specified items.
addCustomizeButton
Indicates whether the Customize Button will be added to the pop-up menu.
clearCollection
Indicates if all menu items from the specified pop-up menu will be removed before adding another items.
internalProcessing
Indicates if we can manage the visibility of the command bar by the specified pop-up menu.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CommandBarManager Class
CommandBarManager Members
Overload List

Send Feedback