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. Nested CSplitterWnd('s) and CSize

Nested CSplitterWnd('s) and CSize

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
3 Posts 2 Posters 16 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.
  • F Offline
    F Offline
    Frank Deo
    wrote on last edited by
    #1

    Can someone explain to me how to get the Panes of a nested splitter window to size up correctly? I know that I should know this, but I can't figure it out. My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | ----------- ^bad graphic. :) The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down. Any explanation of how to do this would be great. Thanks, and sorry for the dumb question. :) Frank

    M 1 Reply Last reply
    0
    • F Frank Deo

      Can someone explain to me how to get the Panes of a nested splitter window to size up correctly? I know that I should know this, but I can't figure it out. My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | ----------- ^bad graphic. :) The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down. Any explanation of how to do this would be great. Thanks, and sorry for the dumb question. :) Frank

      M Offline
      M Offline
      Mike Dunn
      wrote on last edited by
      #2

      You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want. --Mike-- ================== The original message was: Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?

      I know that I should know this, but I can't figure it out.

      My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.

      -----------
      | |
      -----------

      ^bad graphic. :)

      The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.

      Any explanation of how to do this would be great.

      Thanks, and sorry for the dumb question. :)
      Frank

      F 1 Reply Last reply
      0
      • M Mike Dunn

        You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want. --Mike-- ================== The original message was: Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?

        I know that I should know this, but I can't figure it out.

        My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.

        -----------
        | |
        -----------

        ^bad graphic. :)

        The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.

        Any explanation of how to do this would be great.

        Thanks, and sorry for the dumb question. :)
        Frank

        F Offline
        F Offline
        Frank Deo
        wrote on last edited by
        #3

        I did that...but row 0 was always 0 high. Then, all of a sudden I remembered something... CSplitterWnd::SetRowInfo(int row, int cyIdeal, int cyMin ); It worked. Thanks! Frank ================== The original message was: You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want.

        --Mike--

        ==================
        The original message was:

        Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?

        I know that I should know this, but I can't figure it out.

        My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.

        -----------
        | |
        -----------

        ^bad graphic. :)

        The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.

        Any explanation of how to do this would be great.

        Thanks, and sorry for the dumb question. :)
        Frank

        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