BCGControlBar Pro for MFC
void CBCGPMDIFrameWnd::EnableMDITabsLastActiveActivation ( BOOL  bLastActiveTab = TRUE)
inline

Enables activation of the last active tab when the current tab is closed.

There are two ways to activate a tab when the active tab is closed:

  • Activate next tab.
  • Activate last active tab.

Use this function to enable the second way of tab activation. It emulates the way how MDI child window are activated by Windows.

The default implementation uses the first way.

Parameters
bLastActiveTabTRUE - enable activation of last active tab; FALSE - disable activation of last active tab.