Board index » Visual Studio » CSplitterWnd, CFormView and a debug assertion failure
|
MotherwellFC
|
CSplitterWnd, CFormView and a debug assertion failure
Visual Studio151
Hello group- I'm using the following code to set up two views using CSplitterWnd, on the left side is a normal CView object and on the right side a CFormView object with a tab control in it. if(!m_wndSplitter.CreateStatic(this, 1, 2)) return FALSE; // CNormalView descends from CView if(!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CNormalView), CSize(100, 100), pContext) return FALSE; // CTabbedView descends from CFormView if(!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CTabbedView), CSize(100, 100), pContext)) return FALSE; <<--- DEBUG ASSERTION FAILURE What causes this error? What I'm trying to do is simply put a tabbed control on the right side of the window, if this isn't the right approach I'd like to know it. - |
