Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.