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. How to change the size of one pane in the SplitterWnd ?

How to change the size of one pane in the SplitterWnd ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
7 Posts 4 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
    benben
    wrote on last edited by
    #1

    Hi: I create a splitterwnd in my application with 2 rows ,1 colume.I want to change the size of one pane in the SplitterWnd(such as the view in first row),and I can't find a function in MSDN to do so. How could I do? Thanks Benben

    R 1 Reply Last reply
    0
    • B benben

      Hi: I create a splitterwnd in my application with 2 rows ,1 colume.I want to change the size of one pane in the SplitterWnd(such as the view in first row),and I can't find a function in MSDN to do so. How could I do? Thanks Benben

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      CSplitterWnd::SetRowInfo(), CSplitterWnd::SetColumnInfo()

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      T B 2 Replies Last reply
      0
      • R Ryan Binns

        CSplitterWnd::SetRowInfo(), CSplitterWnd::SetColumnInfo()

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        T Offline
        T Offline
        Toni78
        wrote on last edited by
        #3

        Ryan Binns wrote: CSplitterWnd::SetRowInfo(), CSplitterWnd::SetColumnInfo() Wow!:) I looked at them but I didn't really bother reading the info, so my suggestion was to use MoveWindow. Would that work? // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

        R 1 Reply Last reply
        0
        • T Toni78

          Ryan Binns wrote: CSplitterWnd::SetRowInfo(), CSplitterWnd::SetColumnInfo() Wow!:) I looked at them but I didn't really bother reading the info, so my suggestion was to use MoveWindow. Would that work? // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

          R Offline
          R Offline
          Ryan Binns
          wrote on last edited by
          #4

          Toni78 wrote: MoveWindow. Would that work? No. The sizes are cached in the CSplitterWnd class, so bypassing them would produce errors later on.

          Ryan

          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

          T 1 Reply Last reply
          0
          • R Ryan Binns

            Toni78 wrote: MoveWindow. Would that work? No. The sizes are cached in the CSplitterWnd class, so bypassing them would produce errors later on.

            Ryan

            "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

            T Offline
            T Offline
            Toni78
            wrote on last edited by
            #5

            Thank you! I'd better delete my reply then. // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie

            1 Reply Last reply
            0
            • R Ryan Binns

              CSplitterWnd::SetRowInfo(), CSplitterWnd::SetColumnInfo()

              Ryan

              "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

              B Offline
              B Offline
              benben
              wrote on last edited by
              #6

              But it seems that these function only works for the first row. when I try CSplitterWnd::SetRowInfo(0,10,10) , it works well. but if I try CSplitterWnd::SetRowInfo(1,10,10),nothing happen Thanks Benben

              J 1 Reply Last reply
              0
              • B benben

                But it seems that these function only works for the first row. when I try CSplitterWnd::SetRowInfo(0,10,10) , it works well. but if I try CSplitterWnd::SetRowInfo(1,10,10),nothing happen Thanks Benben

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

                Did you call RecalcLayout()?


                My opinions may have changed, but not the fact that I am right.

                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