选项卡(不是选项下的内容 大小)的长度,宽度  如何设置选项卡都是矩形的,如何变成  带有圆角的 矩形啊。。

解决方案 »

  1.   

    貌似只能自绘了。MFC对界面的支持有限
      

  2.   


    你看看这个行不行,注意下面是圆角矩形
    http://www.codeproject.com/KB/tabs/magictabcontrol.aspx
      

  3.   

    汗颜。
    CSharp 版本的。
      

  4.   


    晕,那你看看这个VC版的:
    http://hi.baidu.com/hnhkj/blog/item/c7b594185b5983b44aedbcb4.html
    你自己也可以到codeproject上搜,有很多
      

  5.   

    选项卡(不是选项下的内容 大小)的长度,宽度 如何设置CSize size;
    size.cx = 40;
    size.cy = 40;
    m_tabCtrl.SetItemSize(size);
      

  6.   

    我 一般都是在pudn 上搜索的今天 已经 下载20个了。。  pudn 不让我下了看来知道的论坛太少了。
      

  7.   

    vs2008 sp1自带了CMFCTabCtrl, 就有这个效果。 可以指定它的Style。
    下面是它的style:Style 
     Description 
     
    STYLE_3D 
     Creates a tab control with a three-dimensional appearance. 
     
    STYLE_FLAT 
     Creates a tab control with flat tabs. 
     
    STYLE_FLAT_SHARED_HORZ_SCROLL 
     Creates a tab control with flat tabs and a scroll bar that can scroll the tabs if they are clipped by a parent window. 
     
    STYLE_3D_ONENOTE 
     Creates a tab control in the style of Microsoft OneNote.
     
     
    STYLE_3D_VS2005 
     Creates a tab control in the style of Microsoft Visual Studio 2005. 
     
    STYLE_3D_ROUNDED 
     Creates a tab control with rounded tabs in the style of Microsoft Visual Studio 2005. 
     
    STYLE_3D_ROUNDED_SCROLL 
     Creates a tab control with rounded tabs and scroll buttons in the style of Microsoft Visual Studio 2005.