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. Bringing child window foreground and model-less dialog background

Bringing child window foreground and model-less dialog background

Scheduled Pinned Locked Moved C / C++ / MFC
cssquestion
5 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.
  • V Offline
    V Offline
    Veeresh Hiremath
    wrote on last edited by
    #1

    I have an MDI application. In these , i have a model-less dialog box with a button which when clicked opens up a child window in the background of the dialog box How can i make the child window to appear foreground and dialog box to appear background when the button is clicked

    G 1 Reply Last reply
    0
    • V Veeresh Hiremath

      I have an MDI application. In these , i have a model-less dialog box with a button which when clicked opens up a child window in the background of the dialog box How can i make the child window to appear foreground and dialog box to appear background when the button is clicked

      G Offline
      G Offline
      Galatei
      wrote on last edited by
      #2

      Hi, Could you be more specific, please? You said that it is an MDI application, though is your dialog-box created as standalone window, or as MDI-Child? If your second dialog-box is created as MDI child inside MDI frame, it can't be displayed in foreground. Regards

      V 1 Reply Last reply
      0
      • G Galatei

        Hi, Could you be more specific, please? You said that it is an MDI application, though is your dialog-box created as standalone window, or as MDI-Child? If your second dialog-box is created as MDI child inside MDI frame, it can't be displayed in foreground. Regards

        V Offline
        V Offline
        Veeresh Hiremath
        wrote on last edited by
        #3

        I have a dialog box on start-up of the application . when a button is clicked on the dailog box , it pops up an MDI child window which is displayed at the background.

        G 1 Reply Last reply
        0
        • V Veeresh Hiremath

          I have a dialog box on start-up of the application . when a button is clicked on the dailog box , it pops up an MDI child window which is displayed at the background.

          G Offline
          G Offline
          Galatei
          wrote on last edited by
          #4

          Hi,

          Veeresh Hiremath wrote:

          pops up an MDI child window

          and this is why it is displayed in the background. As long as you create it as MDI child it is supposed to be displayed below your dialog box, though in the foreground of the parent MDI frame. This is exactly how MDI works. Also, "it pops up" is not really the case here, since MDI child windows aren't popped up, these are just MDI frame's child windows, and if you want window to be popped up, you have to obey MDI and create it as popup. Regards

          V 1 Reply Last reply
          0
          • G Galatei

            Hi,

            Veeresh Hiremath wrote:

            pops up an MDI child window

            and this is why it is displayed in the background. As long as you create it as MDI child it is supposed to be displayed below your dialog box, though in the foreground of the parent MDI frame. This is exactly how MDI works. Also, "it pops up" is not really the case here, since MDI child windows aren't popped up, these are just MDI frame's child windows, and if you want window to be popped up, you have to obey MDI and create it as popup. Regards

            V Offline
            V Offline
            Veeresh Hiremath
            wrote on last edited by
            #5

            Thanks for the information.

            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