CMDITabInfo选件类
CMDITabInfo 选件类用于将参数传递到 CMDIFrameWndEx::EnableMDITabbedGroups 方法。 此选件类的成员控件支持MDI选项卡式组行为。
class CMDITabInfo
成员
公共构造函数
名称 |
说明 |
---|---|
CMDITabInfo::CMDITabInfo |
默认构造函数。 |
公共方法
名称 |
说明 |
---|---|
读取或写入此对象从或对存档。 |
数据成员
名称 |
说明 |
---|---|
指定 关闭 按钮是否在活动选项卡上的标签中显示。 |
|
指定是否在MDI选项。 |
|
指定选项卡组是否显示的弹出菜单列出打开文档或显示滚动按钮。 |
|
指定用户是否可以通过拖动交换选项的位置。 |
|
指定选项是否具有简单的帧。 |
|
指定每个选项卡标签是否显示 关闭 按钮。 |
|
指定自定义工具提示是否启用。 |
|
指定是否显示在MDI选项的图标。 |
|
指定每个可选窗口的边框大小。 |
|
指定选项卡标签的样式。 |
|
指定选项卡标签是否位于顶部或页面底部。 |
备注
此选件类指定framework创建MDI选项卡组的参数。
示例
下面的示例演示如何设置各种成员变量的值。CMDITabInfo 选件类的。
CMDITabInfo mdiTabParams;
mdiTabParams.m_style = CMFCTabCtrl::STYLE_3D_ONENOTE;
// set to FALSE to place close button at right of tab area
mdiTabParams.m_bActiveTabCloseButton = FALSE;
// set to TRUE to enable document icons on MDI taba
mdiTabParams.m_bTabIcons = TRUE;
// set to FALSE to disable auto-coloring of MDI tabs
mdiTabParams.m_bAutoColor = FALSE;
// set to TRUE to enable the document menu at the right edge of the tab area
mdiTabParams.m_bDocumentMenu = TRUE;
//set to TRUE to enable the user to change the tabs positions by dragging the tabs
mdiTabParams.m_bEnableTabSwap = TRUE;
// set to TRUE to give each tab window has a flat frame
mdiTabParams.m_bFlatFrame = TRUE;
// set to TRUE to enable each tab window to display the Close button on the right edge of the tab.
mdiTabParams.m_bTabCloseButton = FALSE;
// set to TRUE to enable the tabs to display tooltips.
mdiTabParams.m_bTabCustomTooltips = TRUE;
// Specifies that the tabs labels are located at the top of the page
mdiTabParams.m_tabLocation = CMFCTabCtrl::LOCATION_TOP;
EnableMDITabbedGroups(TRUE, mdiTabParams);
继承层次结构
要求
标头: afxmdiclientareawnd.h