上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 107 下一页

2011年1月9日

在单文档程序中动态切换多个窗体

摘要: 在单文档程序中动态切换多个窗体发表:yueshang 阅读:885次关键字: 字体:[大 中 小] 新建一个基于CFormView的单文档应用程序,再添加一个窗体和与之对应的基于CFormView的新视类,然后通过在主框架类里添加控制代码和菜单控制实现这两个窗体的动态切换,下面就是具体的实现过程:  (一) 用"MFC AppWizard(exe)"建立一个新项目"SwitchForm",并在第二步的创建类型上选择为"Single documnet"单文档模式,第三、四、五、六步均取确省状态,最后一步选择"CFormView"作为视类的基类。点按"完成"按钮,生成了初始工程"SwitchFor 阅读全文

posted @ 2011-01-09 12:05 cy163 阅读(847) 评论(0) 推荐(0)

SDI project中如何在 MainFrm.cpp中 #include "TestViw.h"

摘要: http://www.codeproject.com/Forums/1647/C-Cplusplus-MFC.aspx?fid=1647&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26#xx0xxI create a SDI project with VC 6.0.I have to putin the file MainFrm.cpp, since I need to link testView to a splitted window pane usingHowever, the compiler complaint with the 阅读全文

posted @ 2011-01-09 10:13 cy163 阅读(465) 评论(0) 推荐(0)

分割窗口时CFormView与Pane关联时出现的问题

摘要: 分割窗口时,其中一个窗格Pane,所关联的视,这个视若是从 CEditView, CTreeView, CView等类导出的,则没有问题,若是从 CFormView导出的, 那么编译正常,但执行那个时会出现 ---------------------------Microsoft Visual C++ Debug Library---------------------------Debug Assertion Failed!Program: D:\VC_PROJECT\testMultiPane\Debug\testMultiPane.exeFile: viewform.cppLine: 6 阅读全文

posted @ 2011-01-09 10:04 cy163 阅读(1203) 评论(0) 推荐(0)

2011年1月8日

Vc++ 6.0 如何避免重复包含一个头

摘要: 有下面的自定义结构体,定义在sample.h中。--------------------------------------------typedef struct sample{int trueNumber;double feature[13]; }SAMPLE;--------------------------------------------类A,类B都#includesample.h,主程序都调用了类A,类B;就会出现error C2011: ''sample'' : ''struct'' type redefinition解决方法:写上宏定义:---------------- 阅读全文

posted @ 2011-01-08 22:27 cy163 阅读(375) 评论(0) 推荐(0)

浅谈:切换视时基于FormView的对话框属性设置与ASSERT报错的问题

摘要: 首页 发新随笔 发新文章 联系 聚合 管理 常用链接我的随笔 我的评论 我的参与 最新评论 留言簿(7)给我留言 查看公开留言 查看私人留言 随笔分类Linux学习大杂烩(4) (rss) 编程&&电脑技术随笔(33) (rss) 网页代码随笔(1) (rss) 幽她一默(12) (rss) 随笔档案2008年11月 (1) 2007年11月 (5) 2007年10月 (1) 2007年9月 (1) 2007年8月 (3) 2007年7月 (2) 2007年6月 (1) 2007年4月 (1) 2007年2月 (2) 2006年12月 (2) 2006年10月 (1) 2006年9月 (1) 阅读全文

posted @ 2011-01-08 21:44 cy163 阅读(1307) 评论(0) 推荐(0)

使用CSplitterWnd分割窗口

摘要: 使用CSplitterWnd分割窗口一、基本的CSplitterWnd的使用1. 在CMainFrame中添加一个CSplitterWnd成员:CSplitterWnd m_splitterwnd1;2.基于CView创建两个新的视图类,CViewLeft和CViewRight,一个用于在左边显示,一个用于在右边显示。3.重载CMainFrame的OnCreateClient函数,在并其中调用CSplitterWndr的CreateStatic函数创建该分割窗口,CreateView函数创建左右两个视图,SetColumnInfo设定分割窗口的列的宽度:BOOL CMainFrame::OnC 阅读全文

posted @ 2011-01-08 21:06 cy163 阅读(2561) 评论(0) 推荐(1)

how to create an explorer interface on a dialog using the MFC

摘要: This article shows a demonstration of how to create an explorer interface on a dialog using the MFC classCSplitterWnd. An explorer interface is two controls ? Master and Slave. The master?s content is not changed but the slave?s is. In this particular project the master is a list box containing seve 阅读全文

posted @ 2011-01-08 21:02 cy163 阅读(387) 评论(0) 推荐(0)

动态分割:最多可以有2×2个子窗口,所有窗格使用同一个View类

摘要: 使用类:CSplitterWndCSplitterWnd分割窗口有两 种方式,动态分割和静态分割动态分割:最多可以有2×2个子窗口,所有窗格使用同一个View类;静态分割:最多16×16 个,每个窗格使用不同的View类CSplitterWnd使用方法:一、首先,需要在 CMainFrame中创建一CSplitterWnd对象, CSplitterWnd m_wndSplitter; 同时,需要重载OnCreateClient()函数,如下CMainFrame.h 中声明:public: BOOL OnCreateClient(LPCREATESTRUCT lpcs,CCreateCont 阅读全文

posted @ 2011-01-08 21:00 cy163 阅读(637) 评论(0) 推荐(0)

2011年1月7日

Custom Splitter Window 对话框上实现窗口分割

摘要: Custom Splitter Window using MFC class CSplitterWnd Custom Splitter Window using MFC class CSplitterWnd This article shows a demonstration of how to create an explorer interface on a dialog using the MFC classCSplitterWnd. An explorer interface is two controls ? Master and Slave. The master?s conte 阅读全文

posted @ 2011-01-07 22:39 cy163 阅读(1211) 评论(0) 推荐(0)

使用CSplitterWnd分割窗口 一 二部分(读此文章实验成功)

摘要: 使用CSplitterWnd分割窗口(一)一、基本的CSplitterWnd的使用1. 在CMainFrame中添加一个CSplitterWnd成员:CSplitterWnd m_splitterwnd1;2.基于CView创建两个新的视图类,CViewLeft和CViewRight,一个用于在左边显示,一个用于在右边显示。3.重载CMainFrame的OnCreateClient函数,在并其中调用CSplitterWndr的CreateStatic函数创建该分割窗口,CreateView函数创建左右两个视图,SetColumnInfo设定分割窗口的列的宽度:BOOL CMainFrame:: 阅读全文

posted @ 2011-01-07 22:37 cy163 阅读(930) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 107 下一页

导航