CFrameWnd in SplitterWnd
-
I have an SDI app with static SplitterWnd with two panes. If I load a CFormView in both of them everything works fine. But if I load a CFrameWnd into one of the panes I get an Assertion Error (I think it's either CMainFrame::AssertValid() or CFrameWnd::AssertValid() ) when exiting the app. What am I doing wrong? Do I have to add any member functions to my CFrameWnd class? I've been trying to solve that problem for two days and I'm desperate. Please help me! btw: In Release mode everything works alright. Semlo
-
I have an SDI app with static SplitterWnd with two panes. If I load a CFormView in both of them everything works fine. But if I load a CFrameWnd into one of the panes I get an Assertion Error (I think it's either CMainFrame::AssertValid() or CFrameWnd::AssertValid() ) when exiting the app. What am I doing wrong? Do I have to add any member functions to my CFrameWnd class? I've been trying to solve that problem for two days and I'm desperate. Please help me! btw: In Release mode everything works alright. Semlo
-
I have an SDI app with static SplitterWnd with two panes. If I load a CFormView in both of them everything works fine. But if I load a CFrameWnd into one of the panes I get an Assertion Error (I think it's either CMainFrame::AssertValid() or CFrameWnd::AssertValid() ) when exiting the app. What am I doing wrong? Do I have to add any member functions to my CFrameWnd class? I've been trying to solve that problem for two days and I'm desperate. Please help me! btw: In Release mode everything works alright. Semlo
Where do you get the assert? The call stack should show after the break. Basically, I don't think you can put a CFrameWnd inside a splitter - I think CSplitterWnd expect its children to be CView derivatives. Don't ask me why! If you want to make a convoluted UI with views and splitters inside other views and splitters I suggest you use Zoran Todorovic's Visual Framework (http://www.codeguru.com/advancedui/VisualFx.shtml). Cheers Steen. "To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
-
Where do you get the assert? The call stack should show after the break. Basically, I don't think you can put a CFrameWnd inside a splitter - I think CSplitterWnd expect its children to be CView derivatives. Don't ask me why! If you want to make a convoluted UI with views and splitters inside other views and splitters I suggest you use Zoran Todorovic's Visual Framework (http://www.codeguru.com/advancedui/VisualFx.shtml). Cheers Steen. "To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
Thanks a lot for your answer, Steen! This really helps me a lot! You guessed right, I want to create a nested splitter. It should look like this: ------------------------------ |*CForm* |***************| |*View** |***************| |***1***|***************| |---------|*****CView***** | |*CForm* |***************| |*View** |***************| |***2***|***************| ------------------------------- As i have been thinking about putting tabs in "CFormView 2" pane Zoran Todorovic's Visual Framework probably is the perfect solution for me. Thanks for the hint! Anyway, if someone knows an easier (shorter) way of creating nested splitter please let me know! Semlo