PyCControlBar Object

A class which encapsulates an MFC CControlBar . Derived from a PyCWnd object.

Methods

CalcDynamicLayout
The framework calls this member function to calculate the dimensions of a dynamic toolbar. 

CalcFixedLayout
Calculates the horizontal size of a control bar 

EnableDocking
Specifies whether the control bar supports docking and the sides of its parent window. 

EraseNonClient
 

GetBarStyle
Retrieves the control bar style settings. 

GetCount
Returns the number of non-HWND elements in the control bar. 

GetDockingFrame
Returns the frame window to which a control bar is docked. 

IsFloating
Returns a nonzero value if the control bar in question is a floating control bar. 

SetBarStyle
Modifies the control bar style settings. 

ShowWindow
Shows the window, and recalculates the toolbar layout. 

Properties

PyCFrameWnd dockSite
Current dock site, if dockable

PyCWnd dockBar
Current dock bar, if dockable

PyCDockContext dockContext
Used during dragging

int dwStyle
creation style (used for layout)

int dwDockStyle
indicates how bar can be docked