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

CMDIFrameWndEx::GetMDITabsContextMenuAllowedItems

Returns a combination of flags that determines what operations are valid when the MDI Tabbed Groups feature is enabled.

DWORD GetMDITabsContextMenuAllowedItems();

A bitwise-OR combination of the following flags:

  • BCGP_MDI_CREATE_VERT_GROUP - can create a vertical tab group.

  • BCGP_MDI_CREATE_HORZ_GROUP - can create a horizontal tab group.

  • BCGP_MDI_CAN_MOVE_PREV - can move a tab to the previous tab group.

  • BCGP_MDI_CAN_MOVE_NEXT - can move a tab to the next tab group.

When the MDI Tabbed Groups feature is enabled, you must know what operations are allowed on the tabs of a particular window. This method analyzes the current layout of tabbed windows and returns a combination of flags that can be used to build, for example, a shortcut menu.

You can create a new vertical tab group when all tabbed windows are aligned vertically, or when there is only one tabbed window.

You can create a new horizontal tab group when all tabbed windows are aligned horizontally, or when there is only one tabbed window.

You can move a tab to the previous group only if there is more than one tab in a tabbed window.

You can move a tab to the next group only if there is more than one tab in a tabbed window.

Header: afxMDIFrameWndEx.h

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