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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with multi-splitters [modified]

Problem with multi-splitters [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++debugginghelp
7 Posts 2 Posters 1 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.
  • U Offline
    U Offline
    User 3037427
    wrote on last edited by
    #1

    I have created a splitter window inside another one as follows: m_wndSplitter2.CreateStatic(&m_wndSplitter,1,2, m_wndSplitter.IdFromRowCol(0,1)); ceated the two views Now i have created a third splitter window m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1, m_wndSplitter2.IdFromRowCol(0,1)); m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext); Here i am getting an Exception. When i debug the program, iam getting the exception at pNode=m_pNodeHead in LIST_P.cpp Anybody plz solve my problem:confused: Thanks in advance. -- modified at 3:14 Monday 29th May, 2006

    N 1 Reply Last reply
    0
    • U User 3037427

      I have created a splitter window inside another one as follows: m_wndSplitter2.CreateStatic(&m_wndSplitter,1,2, m_wndSplitter.IdFromRowCol(0,1)); ceated the two views Now i have created a third splitter window m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1, m_wndSplitter2.IdFromRowCol(0,1)); m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext); Here i am getting an Exception. When i debug the program, iam getting the exception at pNode=m_pNodeHead in LIST_P.cpp Anybody plz solve my problem:confused: Thanks in advance. -- modified at 3:14 Monday 29th May, 2006

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      sruti_p wrote:

      Here i am getting an Exception. When i debug the program, iam getting the exception at pNode=m_pNodeHead in LIST_P.cpp

      Check the call stack to see which statement of your file caused this error.


      Nibu thomas A Developer Programming tips[^]  My site[^]

      U 1 Reply Last reply
      0
      • N Nibu babu thomas

        sruti_p wrote:

        Here i am getting an Exception. When i debug the program, iam getting the exception at pNode=m_pNodeHead in LIST_P.cpp

        Check the call stack to see which statement of your file caused this error.


        Nibu thomas A Developer Programming tips[^]  My site[^]

        U Offline
        U Offline
        User 3037427
        wrote on last edited by
        #3

        I am not getting any error When i wrote m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1, m_wndSplitter2.IdFromRowCol(0,1)); m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext); in OnCreateClient(). I am getting the exception only when i wrote the above statements in amy own function. I have written int id=m_wndSplitter2.IdFromRowCol(0,1); m_wndSplitter2.DeleteView(0,1); m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1,id); m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext); m_wndSplitter3.CreateView(1,0,RUNTIMECLASS(CMyView),pContext); Can't we create the splitter window in a function other than OnCreateClient()? I am getting the exception at POSITION CPtrList::Find(......) { ASSERT_VALID(this); CNode* pNode=(CNode*)startAfter; if(pNode==NULL) { pNode= m_pNodeHead;====>here i am getting the exception } ....... ........... } This code is present in LIST_P.cpp. When i debug the program, i am getting the exception at mov ezx,dword ptr [edx+4] I don't know why i am getting this exxception. :confused: can anybody tell me why i am getting this exception :sigh: Thanks in advance. -- modified at 0:36 Tuesday 30th May, 2006

        N 1 Reply Last reply
        0
        • U User 3037427

          I am not getting any error When i wrote m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1, m_wndSplitter2.IdFromRowCol(0,1)); m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext); in OnCreateClient(). I am getting the exception only when i wrote the above statements in amy own function. I have written int id=m_wndSplitter2.IdFromRowCol(0,1); m_wndSplitter2.DeleteView(0,1); m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1,id); m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext); m_wndSplitter3.CreateView(1,0,RUNTIMECLASS(CMyView),pContext); Can't we create the splitter window in a function other than OnCreateClient()? I am getting the exception at POSITION CPtrList::Find(......) { ASSERT_VALID(this); CNode* pNode=(CNode*)startAfter; if(pNode==NULL) { pNode= m_pNodeHead;====>here i am getting the exception } ....... ........... } This code is present in LIST_P.cpp. When i debug the program, i am getting the exception at mov ezx,dword ptr [edx+4] I don't know why i am getting this exxception. :confused: can anybody tell me why i am getting this exception :sigh: Thanks in advance. -- modified at 0:36 Tuesday 30th May, 2006

          N Offline
          N Offline
          Nibu babu thomas
          wrote on last edited by
          #4

          sruti_p wrote:

          This code is present in LIST_P.cpp. I don't know why i am getting this exception. can anybody tell me why i am getting this exception

          I know the exception is in the file LIST_P.cpp. But it could be caused by one or more statements in your file i.e. in the OnCreateClient function. So that's why I told you take a look at the call stack. Try to comment out all statements in the OnCreateClient. Then Uncomment all the others one by one. Trying the find out who is the real culprit.


          Nibu thomas A Developer Programming tips[^]  My site[^]

          U 1 Reply Last reply
          0
          • N Nibu babu thomas

            sruti_p wrote:

            This code is present in LIST_P.cpp. I don't know why i am getting this exception. can anybody tell me why i am getting this exception

            I know the exception is in the file LIST_P.cpp. But it could be caused by one or more statements in your file i.e. in the OnCreateClient function. So that's why I told you take a look at the call stack. Try to comment out all statements in the OnCreateClient. Then Uncomment all the others one by one. Trying the find out who is the real culprit.


            Nibu thomas A Developer Programming tips[^]  My site[^]

            U Offline
            U Offline
            User 3037427
            wrote on last edited by
            #5

            I did what u told me to do.But i am not at all getting any exception because of the code in OnCreateClient(). I am getting th eexception only when i wrote the code in my function. I am not able to understand the reason for this. Can i create the splitter window in a function other than OncreateClient()???

            N 1 Reply Last reply
            0
            • U User 3037427

              I did what u told me to do.But i am not at all getting any exception because of the code in OnCreateClient(). I am getting th eexception only when i wrote the code in my function. I am not able to understand the reason for this. Can i create the splitter window in a function other than OncreateClient()???

              N Offline
              N Offline
              Nibu babu thomas
              wrote on last edited by
              #6

              sruti_p wrote:

              I am getting th eexception only when i wrote the code in my function. I am not able to understand the reason for this. Can i create the splitter window in a function other than OncreateClient()???

              AFAIK No! OnCreateClient is the function that is called during the creation of the client area. Hence you must create your splitter there.


              Nibu thomas A Developer Programming tips[^]  My site[^]

              U 1 Reply Last reply
              0
              • N Nibu babu thomas

                sruti_p wrote:

                I am getting th eexception only when i wrote the code in my function. I am not able to understand the reason for this. Can i create the splitter window in a function other than OncreateClient()???

                AFAIK No! OnCreateClient is the function that is called during the creation of the client area. Hence you must create your splitter there.


                Nibu thomas A Developer Programming tips[^]  My site[^]

                U Offline
                U Offline
                User 3037427
                wrote on last edited by
                #7

                But i want the splitter window to create only when i select an item in the tree control. How can i do this??:confused: output Before selecting the tree item: first pane ---------------------------- tree | control | | third pane | | output After selecting an item in the tree control: first pane ------------------------------------ tree | control | second pane | |-------------------------- | | third pane | Thanks for ur reply.:) -- modified at 6:05 Tuesday 30th May, 2006

                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