The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



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