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. CSplitterWnd issue

CSplitterWnd issue

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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.
  • B Offline
    B Offline
    BlackSmith
    wrote on last edited by
    #1

    Hellew fellow citizens. I wish to create CSplitterWnd that looks like: +-------+----+ |Viewww1|View| +-------+""""+ |Viewww2|""""| +-------+----+ I've read Daniel Zuppingers article, but it's too much. Doe's anybody has an easier solution??? Do help. plz.**

    --BlackSmith--

    **/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.

    J 1 Reply Last reply
    0
    • B BlackSmith

      Hellew fellow citizens. I wish to create CSplitterWnd that looks like: +-------+----+ |Viewww1|View| +-------+""""+ |Viewww2|""""| +-------+----+ I've read Daniel Zuppingers article, but it's too much. Doe's anybody has an easier solution??? Do help. plz.**

      --BlackSmith--

      **/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      That is quite easy if you know how to do it. In your CChildFrame::OnCreateClient you do:

      CSplitterWnd first;
      CSplitterWnd secondleft;
      CSplitterWnd secondright;
      first.CreateStatic(this, 1, 2); //makes panes, one left and one right
      secondleft.CreateStatic(&first, 2, 1, WS_CHILD|WS_VISIBLE|WS_BORDER, first.IdFromRowCol(0,0)); //split left pane in one upper and one lower pane
      secondright.CreateStatic(&first, 2, 1, WS_CHILD|WS_VISIBLE|WS_BORDER, first.IdFromRowCol(0,1)); //split right pane in one upper and one lower pane
      secondleft.createView(0,0,...); //put views (or other CWnds like Toolbars)
      secondleft.createView(1,0,...); //in each of the panes
      secondleft.createView(0,0,...);
      secondleft.createView(1,0,...);

      Hope this has helped a little

      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