BCGControlBar Pro for MFC
virtual void CBCGPOutlookBar::GetTabArea ( CRect &  rectTabAreaTop,
CRect &  rectTabAreaBottom 
) const
virtual

Returns the size and position of the tab area of the outlook bar control.

The framework calls this function when it needs to determine the type of docking to the target control bar. When the framework decides, that the user drags the control bar to be docked over the tab area of the target control bar, it tries to add the first control bar as a new tab of the target control bar. Otherwise it tries to dock the first control bar at some side of the target control bar, creating a new container with a slider.

The default implementation of GetTabArea returns the whole client area of the outlook bar if the outlook bar is "static" (can't float). Otherwise, it returns the area taken by page buttons at the top and bottom of the outlook bar control.

Override this method in a CBCGPOutlookBar - derived class to change this behavior.

Parameters
rectTabAreaTopContains the size and position (in the client coordinates) of the top tab area when the function returns.
rectTabAreaBottomContains the size and position (in the client coordinates) of the bottom tab area when the function returns.

Implements CBCGPBaseTabbedBar.