具体代码如下:
BOOL OnCreateClient(参数省略)
{
CRect cr;
GetWindowRect(&cr); if(!mainSpliter.CreateStatic(this,2,1))
{
MessageBox("错误信息");
return FALSE;
}
if(!mainSpliter.CreateView(0,0,RUNTIME_CLASS(classname),CSize(cr.Width(),cr.Height()/2),pContext))
{
MessageBox("错误信息");
return FALSE;
}
if(!mainSpliter.CreateView(1,0,RUNTIME_CLASS(classname),CSize(cr.Width(),cr.Height()/2),pContext))
{
MessageBox("错误信息");
return FALSE;
}
return true;
}
结果运行出现了异常中断,提示ASSERT(m_nMaxRows>=1),请问哪位大哥碰到过类似问题?
BOOL OnCreateClient(参数省略)
{
CRect cr;
GetWindowRect(&cr); if(!mainSpliter.CreateStatic(this,2,1))
{
MessageBox("错误信息");
return FALSE;
}
if(!mainSpliter.CreateView(0,0,RUNTIME_CLASS(classname),CSize(cr.Width(),cr.Height()/2),pContext))
{
MessageBox("错误信息");
return FALSE;
}
if(!mainSpliter.CreateView(1,0,RUNTIME_CLASS(classname),CSize(cr.Width(),cr.Height()/2),pContext))
{
MessageBox("错误信息");
return FALSE;
}
return true;
}
结果运行出现了异常中断,提示ASSERT(m_nMaxRows>=1),请问哪位大哥碰到过类似问题?
在高级设置里