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. Splitter window problem

Splitter window problem

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 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.
  • A Offline
    A Offline
    ATM CodeProject
    wrote on last edited by
    #1

    Hi All, --------------------- | | | | | | --------------------- | | | | | | --------------------- I need a splitter window (4 way) as shown above. I use the code m_wndSplitter.CreateStatic(this, 1, 2)); m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 0)); m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; m_wndSplitter2.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 1)); m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; But i got this --------------------- || | || | --------------------- || | || | --------------------- I know that m_wndSplitter.CreateStatic(this, 2, 2)); is possible for this 4 way splittering. But here wndSplitter1 & wndSplitter2 are the object of different splitter classes Help me..

    _ 1 Reply Last reply
    0
    • A ATM CodeProject

      Hi All, --------------------- | | | | | | --------------------- | | | | | | --------------------- I need a splitter window (4 way) as shown above. I use the code m_wndSplitter.CreateStatic(this, 1, 2)); m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 0)); m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; m_wndSplitter2.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 1)); m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; But i got this --------------------- || | || | --------------------- || | || | --------------------- I know that m_wndSplitter.CreateStatic(this, 2, 2)); is possible for this 4 way splittering. But here wndSplitter1 & wndSplitter2 are the object of different splitter classes Help me..

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      You have to call m_wndSplitter.CreateView before calling .CreateStatic on the other splitters even though you will never use those views.

      «_Superman_»

      A 1 Reply Last reply
      0
      • _ _Superman_

        You have to call m_wndSplitter.CreateView before calling .CreateStatic on the other splitters even though you will never use those views.

        «_Superman_»

        A Offline
        A Offline
        ATM CodeProject
        wrote on last edited by
        #3

        Wow!! it works well.Thank u very much :-\

        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