BCGControlBar Pro for MFC
BOOL CBCGPRibbonBar::HideAllContextCategories ( )

Hides all context categories.

Use this method to hide all context categories. It can be useful when the context selection goes out and you just need to hide context tabs without care for their indexes and pointers.