Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CMDIFrameWndEx::EnableMDITabsLastActiveActivation

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

Show:
© 2015 Microsoft