BCGControlBar Pro for MFC
void CBCGPBaseTabbedBar::SetAutoDestroy ( BOOL  bAutoDestroy = TRUE)

Sets auto destroy mode.

Set the auto destroy mode to TRUE if you create a tabbed control bar dynamically and you're not controlling its lifetime. In this case the tabbed control bar will be destroyed automatically.

bAutoDestroySpecifies the new autodestroy mode.