我是这样分割一个SDI窗体的
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
CSplitterWnd m_sp2;
CSplitterWnd m_sp1;
m_sp1.CreateStatic(this,1,2);
m_sp1.CreateView (0,0,RUNTIME_CLASS(CView2),CSize(200,200),pContext);
m_sp1.CreateView (0,1,RUNTIME_CLASS(CView3),CSize(200,200),pContext);
return CFrameWnd::OnCreateClient(lpcs, pContext);
}其中CView2,CView3都是从CView派生来的!
这个程序编译没有错误,但是就是不能分割!!
到底是我们问题啊??
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
CSplitterWnd m_sp2;
CSplitterWnd m_sp1;
m_sp1.CreateStatic(this,1,2);
m_sp1.CreateView (0,0,RUNTIME_CLASS(CView2),CSize(200,200),pContext);
m_sp1.CreateView (0,1,RUNTIME_CLASS(CView3),CSize(200,200),pContext);
return CFrameWnd::OnCreateClient(lpcs, pContext);
}其中CView2,CView3都是从CView派生来的!
这个程序编译没有错误,但是就是不能分割!!
到底是我们问题啊??
解决方案 »
- 如何获得Listctrl Item的HDC
- 有谁知道,WordNet为C++提供的编程接口啊?
- 用NSIS如何制作注册和卸载dll脚本
- 在运行一个*.bat脚本文件的时候,有没有办法让它不要显示console窗口就直接运行了啊?????
- 请教如何用CView类或其它方法来显示当前时间!!!!!!
- 怎么改变窗体或者控件的下陷样式,变成平面样式。
- 我写两个类CXPButton和CSkinButton,是由CButton继承下来的,详情请进来看看!
- 求救,vc++使用ado,如何打开xml文件,使用open,vb可以,vc不行
- 对话框编辑问题
- 怎么我的程序在的编辑下CTRL+F5不能正确RUN,但是在资源管理器中能正确RUN
- 谁有中值滤波、高通、低通、带通滤波的算法阿 Matlab +VC 6.0 +matcom??? 请求源程序
- 进来领 100 分吧
http://www.vckbase.com/document/viewdoc/?id=192
{
// TODO: Add your specialized code here and/or call the base class
CSplitterWnd m_sp2;
CSplitterWnd m_sp1;
m_sp1.CreateStatic(this,1,2);
m_sp1.CreateView (0,0,RUNTIME_CLASS(CView2),CSize(200,200),pContext);
m_sp1.CreateView (0,1,RUNTIME_CLASS(CView3),CSize(200,200),pContext);
// return CFrameWnd::OnCreateClient(lpcs, pContext);
return TRUE;
}
我做了个测试,只不同在CSplitterWnd对象是在MainFrame中定义的,结果运行没问题。我想该是那里的问题吧