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. maintaining layout of window

maintaining layout of window

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 1 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.
  • D Offline
    D Offline
    doneirik
    wrote on last edited by
    #1

    hi What do I have to do to maintain the layout of a Form when I maximize the window? Is it possible to desig the GUI working in a window that is 50% smaller than the final GUI and configure the window to maximize when executing such that all the containers in the form maintain its position in relation to the borders AND resizes. (i.e. if I maximize the window from 50% to 100& I want all the containers to double in size as well) doneirik

    M 1 Reply Last reply
    0
    • D doneirik

      hi What do I have to do to maintain the layout of a Form when I maximize the window? Is it possible to desig the GUI working in a window that is 50% smaller than the final GUI and configure the window to maximize when executing such that all the containers in the form maintain its position in relation to the borders AND resizes. (i.e. if I maximize the window from 50% to 100& I want all the containers to double in size as well) doneirik

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      (assuming you're using MFC/win32 UI code ) you need to handle the resizing of the UI manually, handle the WM_SIZE message and resize and reposition each control. or you could use a layout manager, have a look here at CP for different layout managers.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      B 1 Reply Last reply
      0
      • M Maximilien

        (assuming you're using MFC/win32 UI code ) you need to handle the resizing of the UI manually, handle the WM_SIZE message and resize and reposition each control. or you could use a layout manager, have a look here at CP for different layout managers.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        B Offline
        B Offline
        BlackDice
        wrote on last edited by
        #3

        the best one i've seen so far is the 'EasySize' article here on CP My articles www.stillwaterexpress.com BlackDice

        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