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. parent window is getting closed once child window is closed, how to keep parent dialog box alive?

parent window is getting closed once child window is closed, how to keep parent dialog box alive?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
4 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.
  • P Offline
    P Offline
    puppya
    wrote on last edited by
    #1

    i have a dialog box, if i click 1 button on that dialog box, i am displaying another dialog box. when i close that popup dialog box, the main dialog box is also getting closed. how do i keep parent window displyed even after closing child window(popup dialog). thanks in advance

    H 1 Reply Last reply
    0
    • P puppya

      i have a dialog box, if i click 1 button on that dialog box, i am displaying another dialog box. when i close that popup dialog box, the main dialog box is also getting closed. how do i keep parent window displyed even after closing child window(popup dialog). thanks in advance

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      How did you close chid dialog?

      P 1 Reply Last reply
      0
      • H Hamid Taebi

        How did you close chid dialog?

        P Offline
        P Offline
        puppya
        wrote on last edited by
        #3

        void CMessage1::OnClose() { CDialog::OnClose(); }

        S 1 Reply Last reply
        0
        • P puppya

          void CMessage1::OnClose() { CDialog::OnClose(); }

          S Offline
          S Offline
          sheshidar
          wrote on last edited by
          #4

          Hi, OnClose is not a member of CDialog. And how it will close the dialog? Can you write a bit more about problem. I mean along with code.

          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