关于CCoolBar界面布局问题

zearbo 2012-06-03 05:21:49
在VC6 中如何采用CCoolBar实现下面的布局:

|--------------------------------
| | | |
| | | |
| 1 | 视图区 | 3 |
| | | |
| | | |
| ------------------------|
| | 2 |
| | |
---------------------------------
其中 1,2,3,为用CCOOLBar部件的窗体控件。
视图区为CView。
...全文
106 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
redleafe 2012-06-08
  • 打赏
  • 举报
回复
用BCG,左侧用Outlook类型的控件。
基本上需要的界面都可以用BCG和XTP直接做出来。
没用过CCoolBar。
zearbo 2012-06-06
  • 打赏
  • 举报
回复
请朋友们帮忙啊。
zearbo 2012-06-04
  • 打赏
  • 举报
回复
|--------------------------------
|&&&&&&&|&&&&&&&&&&&&&&&|&&&&&&&|
|&&&&&&&|&&&&&&&&&&&&&&&|&&&&&&&|
|&&&1&&&|&&&&&视图区&&&&|&&&3&&&|
|&&&&&&&|&&&&&&&&&&&&&&&|&&&&&&&|
|&&&&&&&|&&&&&&&&&&&&&&&|&&&&&&&|
|&&&&&&&------------------------|
|&&&&&&&|&&&&&&&2&&&&&&&&&&&&&&&|
|&&&&&&&|&&&&&&&&&&&&&&&&&&&&&&&|
---------------------------------
没办法了,这样试试,“&”表示空格,
zearbo 2012-06-04
  • 打赏
  • 举报
回复
|--------------------------------
| | | |
| | | |
| 1 | 视图区 | 3 |
| | | |
| | | |
| ------------------------|
| | 2 |
| | |
---------------------------------
不知道为什么帖子的图发生了扭曲,跟我编辑时不一样。
一个功能强大的MFC界面处理扩展库:CJ60Lib 这是从网上搜集的一个扩展库,把它分享给大家! 简介: CJ60Lib是基于MFC基础之上的一个扩展库,主要是改进MFC的下述类: CCJButton - ( CJButton.cpp and CJButton.h )对CButton的改进。 CCJComboBox - ( CJComboBox.cpp and CJComboBox.h )对CComboBox的改进。 CCJControlBar - ( CJControlBar.cpp and CJControlBar.h )对CControlBar的改进。 CCJFrameWnd - ( CJFrameWnd.cpp and CJFrameWnd.h ) CCJMDIFrameWnd - ( CJMDIFrameWnd.cpp and CJMDIFrameWnd.h ) CCJDockBar - ( CJDockBar.cpp and CJDockBar.h ) 这些类重载了缺省的主框架布局,以增加3D效果到工具条。为了使用这些类,仅将 CFrameWnd 改为 CCJFrameWnd,其中,CMainFrame 包含在 Mainfrm.h文件中,(对于MDI,采用CCJMDIFrameWnd)。 CCJOutlookBar - ( CJOutlookBar.cpp and CJOutlookBar.h )新增类,用于实现Outlook中的工具条。 CCJPagerCtrl - ( CJPagerCtrl.cpp and CJPagerCtrl.h )新增类,用于设置标签视或者对话框。 CCJTabCtrlBar - ( CJTabCtrlBar.cpp and CJTabCtrlBar.h )新增类。 CCJToolBar - ( CJToolBar.cpp and CJToolBar.h )对CToolBar类的改进。 CCoolMenuManager -( CoolMenu.cpp, Emboss.cpp and CoolMenu.h ) CSubclassWnd -( Subclass.cpp and Subclass.h ) 新增类,用于改进已有的菜单。 CFlatToolBar - ( FlatBar.cpp and FlatBar.h ) Obsolete with VC 6.0 CModuleVersion - ( ModulVer.cpp and ModulVer.h ) 这是CCJToolBar的基类。 CCoolBar, CRebarInfo - ( CoolBar.cpp and CoolBar.h ) Obsolete with VC 6.0 新增类,用于实现Internet Explorer 4风格的工具条。 CHyperLink - ( HyperLink.cpp and HyperLink.h ) 超链接控件。 使用方法: 在Project Settings中选择General标签,Microsoft Foundation Class设置为 Use MFC in a shared DLL。 在Project Settings中选择Link标签,设置Category为Input,增加../Lib到Additional Library Path。 在Link标签中,改变Category为General,Output Name (所有配置)设置为../Lib。 选择C/C++标签,改变Category为Preprocessor,增加../Include到Additional Include Directories. 最后一步是添加下面两行代码到StdAfx.h头文件中: #define MFCX_PROJ #include 为了能静态链接到CJ60Lib,需要做下面修改: 在project settings对话框中,选择General标签,确保Microsoft Foundation Class设置为Use MFC in a static library。 添加下面代码到StdAfx.h 头文件,其将使库静态链接到应用程序: #define MFCXLIB_STATIC #define MFCX_PROJ #include

15,980

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧