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 阅读(636) 评论(0) 推荐(0)

导航