April 17th, 1999, 09:28 AM
No error in compiling. When I run, I get A SDI frame with ONE view filling out all of the view area of the frame. (?) Shouldn't I get 2 views (1 row w/2 col)? I was following Jeff Prosise's example. Would sure appreciate any suggestions. Here's the OnCreateClient function:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
m_wndSplitter.CreateStatic(this,1,2);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS (CTimeView),CSize(128,0),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS (CEditView),CSize(0,0),pContext);
return CFrameWnd::OnCreateClient(lpcs, pContext);
}
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
m_wndSplitter.CreateStatic(this,1,2);
m_wndSplitter.CreateView(0,0,RUNTIME_CLASS (CTimeView),CSize(128,0),pContext);
m_wndSplitter.CreateView(0,1,RUNTIME_CLASS (CEditView),CSize(0,0),pContext);
return CFrameWnd::OnCreateClient(lpcs, pContext);
}