Adds a new tab to a tabbed bar.
- Returns
- Nonzero if a control bar that has been added as a new tab does exist after the function returns. It's 0 if a control bar has been destroyed. It may happen if the added bar was a tabbed control bar.
Call this member function to add a control bar as a new tab to a tabbed control bar. If pNewBar points to an object of type CBCGPBaseTabbedBar, all its tabs are copied and the bar itself is destroyed. In this case a tabbed control bar that has been added is destroyed by AddTab and you have to stop using the pBar pointer.
- Parameters
-
pNewBar | A pointer to a control bar to add. |
bVisible | Specifies the visibility state of the added tab. |
bSetActive | Specifies whether to set the added tab active or not. |
bDetachable | Specifies whether to set the added tab detachable or not. |