BCGControlBar Pro for MFC
CBCGPMultiMiniFrameWnd

Detailed Description

The CBCGPMultiMiniFrameWnd class has the same functionality as CBCGPMiniFrameWnd, but it may contain several control bars in a form of container. Instead of a single embedded handle to a control bar, CBCGPMultiMiniFrameWnd has an embedded CBCGPBarContainerManager object. This allows to dock one multiminiframe to another or create floating tabbed windows on the fly.

If a control bar with the roll up style (CBRS_BCGP_AUTO_ROLLUP) is docked to a multiminiframe window, the window can be rolled up disregard the styles of the rest of docked bars.

A CBCGPMultiMiniFrameWnd object is created automatically by the framework if a control bar that is being floated has the CBRS_FLOAT_MULTI style.

See CBCGPMiniFrameWnd how to derive a class from the mini-frame window class and make it dynamically created.

Most of methods of this class are overridden methods of CBCGPMiniFrameWnd.

+ Inheritance diagram for CBCGPMultiMiniFrameWnd:

Public Member Functions

 GetContainerManagerGives the access to the internal container manager object.
 
- Public Member Functions inherited from CBCGPMiniFrameWnd
 CalcBorderSizeCalled by the framework to calculate the size of a mini-frame window borders.
 
 CreateCreates the Windows mini-frame window and attaches it to the CBCGPMiniFrameWnd object.
 
 CreateExCreates the Windows mini-frame window and attaches it to the CBCGPMiniFrameWnd object.
 
 DockControlBarCauses a control bar to be docked to the mini-frame window.
 
 GetCaptionHeightReturns the height of the mini-frame window caption.
 
 GetCaptionRectCalculates the bounding rectangle of a mini-frame window caption.
 
 IsActiveTells whether a mini frame is active, or not.
 
 IsRollDownCalled by the framework to determine whether a mini-frame window should be rolled down.
 
 IsRollUpCalled by the framework to determine whether a mini-frame window should be rolled up.
 
 IsWsCaptionStyleTells whether a window with themed non-client area is created with WS_CAPTION style.
 
 SizeToContentAdjusts size of a mini-frame window to the size of a contained control bar.
 

Additional Inherited Members

- Static Public Member Functions inherited from CBCGPMiniFrameWnd
 BringAllMiniFramesToWorkAreaMoves all mini frame windows located outside the work area to the current work area.
 
 FindFloatingBarByIDLooks for a toolbar with the specified control ID in the global list of floating control bars.
 
 RedrawAllRedraws all mini-frame windows.
 
- Static Public Attributes inherited from CBCGPMiniFrameWnd
 m_bUseSaveBitsSpecifies whether to register the window class with CS_SAVEBITS or not.
 
- Protected Member Functions inherited from CBCGPMiniFrameWnd
 AddButtonAdds a new button to the caption.
 
 OnCheckRollStateCalled by the framework to determine whether a roll up mini-frame window should be rolled up or down.
 
 OnDrawBorderCalled by the framework to draw borders of a mini-frame window.
 
 RemoveAllCaptionButtonsRemoves all caption buttons.
 
 RemoveButtonRemoves the caption button specified by nHit.
 
 ReplaceButtonReplaces the caption button.
 
 ShowButtonShows or hides the caption button.