我已经弄好了一个Tab 里面包含三个Tab页(分别为Tab1,Tab2,Tab3)(垂直方向显示的) 分别显示三个对话框:
我现在想在刚创建好的Tab的Tab1里面在在创建一个Tab(水平显示)、(界面和 阿里旺旺的那种tab 表差不多),但是我按照那种方法创建好之后界面非常丑我想请问大家有没有人知道有没有已经写好的扩展Tab可以直接 同时能创建垂直方向的Tab 和水平方向的Tab 或者能帮我提供一个按照我说的那种方法创建起来不丑的界面 谢谢大家!
CodeProject上面的代码和Demo我基本都看了,没有符合我要求的
如果界面十分漂亮的 我可以追加分
我现在想在刚创建好的Tab的Tab1里面在在创建一个Tab(水平显示)、(界面和 阿里旺旺的那种tab 表差不多),但是我按照那种方法创建好之后界面非常丑我想请问大家有没有人知道有没有已经写好的扩展Tab可以直接 同时能创建垂直方向的Tab 和水平方向的Tab 或者能帮我提供一个按照我说的那种方法创建起来不丑的界面 谢谢大家!
CodeProject上面的代码和Demo我基本都看了,没有符合我要求的
如果界面十分漂亮的 我可以追加分
解决方案 »
- ??3@YAXPAX@Z 是什么来的??
- 急救啊!辛苦了一天!
- 研究DXF文件的来聚聚
- 关于模板类pair的问题,请大虾帮助!!
- 在HOTKEY控件中当我按下键时,怎样得到它的ASC码?
- 请教,请教!如何做成一个自解压的安装文件?
- 怎样恢复硬盘的原容量?
- 为什么我不应用模版类CList?
- PostMessage的第一个参数?不知道在对话框中怎么得到激活它的视图指针
- 我问你答:在CFrameWnd类中,oncreate()与oncreateclient的区别!?
- 请问为什么写入会有乱码!!! 功功能是实现文件的复制,两个名从键盘输入!!
- SHGetSpecialFolderLocation()函数返回错误的问题
http://p.blog.csdn.net/images/p_blog_csdn_net/tanker1024/EntryImages/20081119/QQ截图未命名.jpg目前状况图:
http://p.blog.csdn.net/images/p_blog_csdn_net/tanker1024/EntryImages/20081119/QQ截图未命名1.jpg谢谢大家
Owner-Drawn Tabs
If a tab control has the TCS_OWNERDRAWFIXED style, the parent window must paint tabs by processing the WM_DRAWITEM message. The tab control sends this message whenever a tab needs to be painted. The lParam parameter specifies the address of a DRAWITEMSTRUCT structure, which contains the index of the tab, its bounding rectangle, and the device context (DC) in which to draw. By default, the itemData member of DRAWITEMSTRUCT contains the value of the lParam member of the TCITEM structure. However, if you change the amount of application-defined data per tab, itemData contains the address of the data instead. You can change the amount of application-defined data per tab by using the TCM_SETITEMEXTRA message. To specify the size of items in a tab control, the parent window must process the WM_MEASUREITEM message. Because all tabs in an owner-drawn tab control are the same size, this message is sent only once. There is no tab control style for owner-drawn tabs of varying size. You can also set the width and height of tabs by using the TCM_SETITEMSIZE message. 另外你可以到www.codeproject.com上搜索一下,应该可以找到类似的例子。
http://www.vckbase.com/document/viewdoc/?id=1841