Collapse the table of content
Expand the table of content



Specifies whether the last active tab should be opened when the user closes the current tab.

void EnableMDITabsLastActiveActivation(
   BOOL bLastActiveTab=TRUE 

[in] bLastActiveTab

If TRUE, enable activation of the last active tab. If FALSE, disable activation of the last active tab.

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

  • Activate the next tab.

  • Activate the previously active tab.

The default implementation uses the first way.

Use EnableMDITabsLastActiveActivation to enable the second way of tab activation. It emulates the way Windows opens MDI child windows.


Header: afxMDIFrameWndEx.h

© 2016 Microsoft