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. Dialog as child of dialog

Dialog as child of dialog

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 1 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.
  • L Offline
    L Offline
    ldaoust
    wrote on last edited by
    #1

    I want to create a dialog that is a child of another dialog. This child dialog would have a title bar so I can move it around, but as a child it would be confined (cliped) within it's parent dialog. I already tried the obvious way. Create a dialog, set type as Child, then create an object for this dialog and call the create method. ex:void CParentDialog::CreateChildDialog() { m_ChildDialog.Create( IDD_CHILD, this ); }
    What happens is that the dialog is there, but it is being drawn over by other controls in the parent dialog, and also I cannot click on it to activate it or move it around. Louis.

    L 1 Reply Last reply
    0
    • L ldaoust

      I want to create a dialog that is a child of another dialog. This child dialog would have a title bar so I can move it around, but as a child it would be confined (cliped) within it's parent dialog. I already tried the obvious way. Create a dialog, set type as Child, then create an object for this dialog and call the create method. ex:void CParentDialog::CreateChildDialog() { m_ChildDialog.Create( IDD_CHILD, this ); }
      What happens is that the dialog is there, but it is being drawn over by other controls in the parent dialog, and also I cannot click on it to activate it or move it around. Louis.

      L Offline
      L Offline
      ldaoust
      wrote on last edited by
      #2

      ok, i figured out all the settings to achieve what I want... Basically, what was important, is that I had to set the WS_CLIPSIBLINGS window style to all child of the parent dialog. case closed.

      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