Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CFrameWnd in SplitterWnd

CFrameWnd in SplitterWnd

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionannouncement
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Semlo
    wrote on last edited by
    #1

    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

    S S 2 Replies Last reply
    0
    • S 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

      S Offline
      S Offline
      Semlo
      wrote on last edited by
      #2

      Doesn't anyone have a hint for me? Do you need more detailed information? please someone help me! Semlo

      1 Reply Last reply
      0
      • S 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

        S Offline
        S Offline
        Steen Krogsgaard
        wrote on last edited by
        #3

        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"

        S 1 Reply Last reply
        0
        • S Steen Krogsgaard

          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"

          S Offline
          S Offline
          Semlo
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups