BCGControlBar Library for .NET
CloseChain Method (ContextPopupMenuBar)




The last popup menus to be closed.
Specifies if the  control bar which contains a menu button parent for a popup menu specified in parameter "last" gets a capture after closing popup menubar.
Closes a chain of the popup menus. In this chain of popup menus each popup menu is a toplevel popup menu for another with exception of the first popup menu. Called by the framework when it is necessary to close a set of popup menus.
Syntax
'Declaration
 
Public Overrides Sub CloseChain( _
   ByVal barLast As CommandBar, _
   ByVal setCaptureToTopLevelBar As Boolean _
) 
'Usage
 
Dim instance As ContextPopupMenuBar
Dim barLast As CommandBar
Dim setCaptureToTopLevelBar As Boolean
 
instance.CloseChain(barLast, setCaptureToTopLevelBar)
public override void CloseChain( 
   CommandBar barLast,
   bool setCaptureToTopLevelBar
)
public: void CloseChain( 
   CommandBar* barLast,
   bool setCaptureToTopLevelBar
) override 
public:
void CloseChain( 
   CommandBar^ barLast,
   bool setCaptureToTopLevelBar
) override 

Parameters

barLast
The last popup menus to be closed.
setCaptureToTopLevelBar
Specifies if the  control bar which contains a menu button parent for a popup menu specified in parameter "last" gets a capture after closing popup menubar.
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

ContextPopupMenuBar Class
ContextPopupMenuBar Members
Base Implementation in CloseChain

Send Feedback