BCGControlBar Pro for MFC
BOOL CBCGPMDITabParams::m_bActivateRightmostTabOnClose

Specifies whether the rightmost tab should be activated after closing the current MDI tab.