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. How do I call a Child window from a Dialog?

How do I call a Child window from a Dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomhelptutorial
2 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
    TMaxwell86
    wrote on last edited by
    #1

    Hello, This may seem rather easy for most of you, but I seem to have difficulty with what should be a very easy task. I have a Main Frame that opens with a background bmp but no Child. What I want to do is when you click "Start" from the menu, a dialog opens. After filling out a few variables in the dialog, I want to close the dialog, then open two new/different child windows (actually I would like to split the main window into 4 parts and place adifferent child into each quarter). Can anyone direct me to an online file or tutorial for something like this? I can't seem to find the right reference. Any help would be GREATLY appreciated!:-D Thomas (tntnmmd@hotmail.com)

    R 1 Reply Last reply
    0
    • T TMaxwell86

      Hello, This may seem rather easy for most of you, but I seem to have difficulty with what should be a very easy task. I have a Main Frame that opens with a background bmp but no Child. What I want to do is when you click "Start" from the menu, a dialog opens. After filling out a few variables in the dialog, I want to close the dialog, then open two new/different child windows (actually I would like to split the main window into 4 parts and place adifferent child into each quarter). Can anyone direct me to an online file or tutorial for something like this? I can't seem to find the right reference. Any help would be GREATLY appreciated!:-D Thomas (tntnmmd@hotmail.com)

      R Offline
      R Offline
      Renjith Ramachandran
      wrote on last edited by
      #2

      From the Start Menu ? Override WM_COMMAND OnCommand() { check ur menu ID, if it from start menu, CChildDlg oDlg; oDlg.DoModal(); } 4 Frames???? Sounds like u really need a splitter wnd... hey refer MSDN , there is no other better source for MFC/SDK.. Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.

      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