MDI程序
CSplitterWnd m_splitterWnd;
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if( !m_splitterWnd.CreateStatic( this, 1, 2 ) )
{
return FALSE;
}
if( !m_splitterWnd.CreateView(0, 0, RUNTIME_CLASS( CLeftView ), CSize( 100,100 ), pContext ) )
{
return FALSE;
}
if( !m_splitterWnd.CreateView(0, 1, RUNTIME_CLASS( CControlView ), CSize( 100,100 ), pContext ) )
{
return FALSE;
}
return TRUE;
return CMDIFrameWnd::OnCreateClient(lpcs, pContext);
}//CLeftView 派生于CView
//CControlView 派生于CFromView编译通过但运行出错,这是什么原因?
CSplitterWnd m_splitterWnd;
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
if( !m_splitterWnd.CreateStatic( this, 1, 2 ) )
{
return FALSE;
}
if( !m_splitterWnd.CreateView(0, 0, RUNTIME_CLASS( CLeftView ), CSize( 100,100 ), pContext ) )
{
return FALSE;
}
if( !m_splitterWnd.CreateView(0, 1, RUNTIME_CLASS( CControlView ), CSize( 100,100 ), pContext ) )
{
return FALSE;
}
return TRUE;
return CMDIFrameWnd::OnCreateClient(lpcs, pContext);
}//CLeftView 派生于CView
//CControlView 派生于CFromView编译通过但运行出错,这是什么原因?
解决方案 »
- 不显示删除回复显示所有回复显示星级回复显示得分回复 专有命名空间,求大牛
- VS2008,我在类里添加了个函数,但又想把它删了,可找不到删除,怎么把已添加的函数删掉
- 怎么得到HBRUSH的颜色,不要用MFC,用windows API
- 急!!!来者有分! 直接使用socket访问一个HTTP服务器上的一个Web Page, 如何使用SOCKS代理呀
- InstallShield6 安装问题
- 我的VC在WindowXP 中编译时会出现黑色的Dos界面
- MFC中,怎么让列表控件上的显示字符显示出不同颜色
- 抓屏问题
- VC编程环境
- 【help】关于摄像头视频开发的简单问题
- 如何设置使CStatusBar中某个窗格的可有或不可用?
- 100分求助,请问编译成release版本怎么出错了
style->child
Border->Thin
从CFromView派生, 代码未动过.
CLeftView 只是单纯的新建了一个从CView派生的类而已,其它的没动过.
把return TRUE;去掉就ok了!