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. Resizing child frame with nested csplitterwnd

Resizing child frame with nested csplitterwnd

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 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.
  • T Offline
    T Offline
    Tarek Jabri
    wrote on last edited by
    #1

    Hi everybody: i have a child frame with four splitters and five views, when i resize the child frame (decreasing for example) only the size of the first view decreases until it becomes zero, so the second view`s size starts to decrease, and so one i want to make all the views shrinks equally when resizing the child frame any help is appreciated thanks alot

    L 1 Reply Last reply
    0
    • T Tarek Jabri

      Hi everybody: i have a child frame with four splitters and five views, when i resize the child frame (decreasing for example) only the size of the first view decreases until it becomes zero, so the second view`s size starts to decrease, and so one i want to make all the views shrinks equally when resizing the child frame any help is appreciated thanks alot

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      WM_SIZE

      "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
      Christian Graus in the C# forum

      led mike

      T 1 Reply Last reply
      0
      • L led mike

        WM_SIZE

        "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
        Christian Graus in the C# forum

        led mike

        T Offline
        T Offline
        Tarek Jabri
        wrote on last edited by
        #3

        i know it must go in the onsize handler in the child but i want to know how to do it?

        L 1 Reply Last reply
        0
        • T Tarek Jabri

          i know it must go in the onsize handler in the child but i want to know how to do it?

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Tarek Jabri wrote:

          i want to make all the views shrinks equally

          Tarek Jabri wrote:

          but i want to know how to do it?

          I don't understand what the problem is? As the parent window size changes you have to calculate what "equal" is and then adjust the components (views, splitters, whatever) that are required, right?

          "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
          Christian Graus in the C# forum

          led mike

          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