CXTPTabControl 使用 ----如何限制tab标签页显示
2012-02-22 14:59
513 查看
1,CXTPTabControl 创建方法
2.使用方式:
3.处理标签页显示控制
if (!m_wndTabs.Create (WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, rectDummy, this, IDC_TABCTROL)) { TRACE0("Failed to create output tab window\n"); return false; // fail to create } m_wndTabs.GetPaintManager()->SetAppearance(xtpTabAppearanceVisualStudio2005/*xtpTabAppearancePropertyPage2003*/); m_wndTabs.GetPaintManager()->m_bHotTracking = TRUE; m_wndTabs.GetPaintManager()->m_bShowIcons = TRUE; m_wndTabs.GetPaintManager()->SetPosition(xtpTabPositionBottom); m_wndTabs.GetPaintManager()->DisableLunaColors(/*FALSE*/TRUE);
2.使用方式:
if(!pNewWnd->Create(NULL, NULL, WS_CHILD | WS_VISIBLE, rectDummy,&m_wndTabs,IDC_PAGEWND, &cc)) { delete pNewWnd ; pNewWnd = NULL; return; } pGridWnd->SetOwner(this); m_wndTabs.InsertItem(i, "新建标签页", pNewWnd->GetSafeHwnd());
3.处理标签页显示控制
if (1 == iTotalPages) //只有一个page时不显示tab页,避免跟主窗口的重复显示 { m_wndTabs.GetPaintManager()->m_bShowTabs = FALSE; }
相关文章推荐
- 如何在TabControl中响应右键鼠标(添加一个ContextMenu就可以了),如何让在tab标签处右键菜单和在内容处右键菜单显示不同的菜单?
- vc 对话框使用Tab Control控件的多标签页
- c# 如何隐藏TabControl控件的标签
- 如何隐藏TabControl控件的标签
- 在JSP中使用Struts2标签分页 限制页码只显示10页 带分页算法 样式
- 如何使用asp.net2.0的角色机制限制sitemap的显示
- C#.NET的TabControl如何隐藏和显示页面
- 在MFC中使用Tab Control控件实现分页显示和跳转
- Struts2使用validation.xml验证时,如何显示字段的标签(未解决)
- openx中如何使用site-variable(参数)限制(关键词)广告显示
- 标签控件TabControl的使用
- 如何使用TabControl控件?
- 如何使tabcontrol选项卡上的字体设置为竖着显示(c#,VS2005,winform)
- 标签控件TabControl的使用
- 如何设置tabcontrol控件的tabPage的text内容显示成竖着的字体
- 如何使用sencha-touch控件显示平板上的tab界面
- 使用RDRDVTabBarController第三方方法,如何实现中间tab突出显示的效果
- 如何把tabControl 的tabPage控件的标题不显示,只显示矩形框的内容
- 如何隐藏TabControl中TabPage的页标签?
- C#.NET常见问题(FAQ)-TabControl如何隐藏和显示页面