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. MFC dialog + ResizableLib + splitter

MFC dialog + ResizableLib + splitter

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++helptutorial
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.
  • D Offline
    D Offline
    Dialecticus
    wrote on last edited by
    #1

    I have a dialog inherited from CResizableDialog, and some controls in it. I would like the user to be able to resize controls within dialog, like with some splitters. There are 4 major areas, 3 on top window half, and one on bottom. I thought that some splitter class from CP would help me here, but the code is either immature, or requires creation of panes. I don't have panes, just controls, and don't know how to work with panes. What is the recommended class, or best common practice, and where can I find some sample code?

    L T 2 Replies Last reply
    0
    • D Dialecticus

      I have a dialog inherited from CResizableDialog, and some controls in it. I would like the user to be able to resize controls within dialog, like with some splitters. There are 4 major areas, 3 on top window half, and one on bottom. I thought that some splitter class from CP would help me here, but the code is either immature, or requires creation of panes. I don't have panes, just controls, and don't know how to work with panes. What is the recommended class, or best common practice, and where can I find some sample code?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You should not be using a CDialog for this. MFC has a CSplitterWnd that will handle multiple panes and you can add any other CWnd type within each pane.

      Unrequited desire is character building. OriginalGriff

      1 Reply Last reply
      0
      • D Dialecticus

        I have a dialog inherited from CResizableDialog, and some controls in it. I would like the user to be able to resize controls within dialog, like with some splitters. There are 4 major areas, 3 on top window half, and one on bottom. I thought that some splitter class from CP would help me here, but the code is either immature, or requires creation of panes. I don't have panes, just controls, and don't know how to work with panes. What is the recommended class, or best common practice, and where can I find some sample code?

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

        Mihajlo Cvetanovic wrote:

        I would like the user to be able to resize controls within dialog

        That's a tall order.

        If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
        You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

        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