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. Beginner Windows C++ GUI question

Beginner Windows C++ GUI question

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearninghelptutorial
3 Posts 3 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.
  • I Offline
    I Offline
    Indrawati
    wrote on last edited by
    #1

    Hi I have just started learning C++ GUI programming using Visual C++ (I'm using VC++ 6), and I have two questions regarding it: 1. Let's say I create a dilog-based project, and I put some things (buttons, lists, etc.). The problem is, when the user maximizes the the dialog, the button placements are not automatically modified, leaving a large part of the maximized window blank. Is there a way to automatically reposition ALL the things inside the dialog when the user maximizes the window (or resizes the window, for that matter)? Or do I need to manually recalculate the correct positions and sizes for all the things and apply them one by one? 2.Is there a tutorial/website that explains how I can create other GUIs beside the document/view or dialog-based GUIs that Visual C++ provides (e.g. skin-based GUI, GUI's with shape other than simple rectangle, etc.)? Thanks!

    C R 2 Replies Last reply
    0
    • I Indrawati

      Hi I have just started learning C++ GUI programming using Visual C++ (I'm using VC++ 6), and I have two questions regarding it: 1. Let's say I create a dilog-based project, and I put some things (buttons, lists, etc.). The problem is, when the user maximizes the the dialog, the button placements are not automatically modified, leaving a large part of the maximized window blank. Is there a way to automatically reposition ALL the things inside the dialog when the user maximizes the window (or resizes the window, for that matter)? Or do I need to manually recalculate the correct positions and sizes for all the things and apply them one by one? 2.Is there a tutorial/website that explains how I can create other GUIs beside the document/view or dialog-based GUIs that Visual C++ provides (e.g. skin-based GUI, GUI's with shape other than simple rectangle, etc.)? Thanks!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Indrawati wrote: Is there a way to automatically reposition ALL the things inside the dialog when the user maximizes the window No. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      1 Reply Last reply
      0
      • I Indrawati

        Hi I have just started learning C++ GUI programming using Visual C++ (I'm using VC++ 6), and I have two questions regarding it: 1. Let's say I create a dilog-based project, and I put some things (buttons, lists, etc.). The problem is, when the user maximizes the the dialog, the button placements are not automatically modified, leaving a large part of the maximized window blank. Is there a way to automatically reposition ALL the things inside the dialog when the user maximizes the window (or resizes the window, for that matter)? Or do I need to manually recalculate the correct positions and sizes for all the things and apply them one by one? 2.Is there a tutorial/website that explains how I can create other GUIs beside the document/view or dialog-based GUIs that Visual C++ provides (e.g. skin-based GUI, GUI's with shape other than simple rectangle, etc.)? Thanks!

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        MFC doesn't come with a layout manager like Java. However, see this[^] and this[^] CP section for answers. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

        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