Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Just create a class derived from the CExtMenuControlBar class and override the IsDisplayMdiDocumentButtons() virtual method like as follows:

bool CMyMenuBar::IsDisplayMdiDocumentButtons() const
{
    return false; // default implementation returns true
}