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. Modal Child of a modeless dialog donot hide

Modal Child of a modeless dialog donot hide

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

    Main window of my SDI application generates a modless dialog which can be displayed and hide using menu options in parent window. this modeless dialog on certain options also generates a modal dialog, now when the modal dialog is active and i hide its parent ie modeless dialog from main sdi window only the parent modeless dialog hides whereas modal dialog remanis visible and doesnot hides. since it is child of modeless dialog it should also hide but it wont.

    M 1 Reply Last reply
    0
    • P pc_dev

      Main window of my SDI application generates a modless dialog which can be displayed and hide using menu options in parent window. this modeless dialog on certain options also generates a modal dialog, now when the modal dialog is active and i hide its parent ie modeless dialog from main sdi window only the parent modeless dialog hides whereas modal dialog remanis visible and doesnot hides. since it is child of modeless dialog it should also hide but it wont.

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      When the modeless dialog is hidden, hide the modal dialog. There is a message ( WM_SHOWWINDOW ) that tells you a window is shown or hidden.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      P 1 Reply Last reply
      0
      • M Maximilien

        When the modeless dialog is hidden, hide the modal dialog. There is a message ( WM_SHOWWINDOW ) that tells you a window is shown or hidden.


        Maximilien Lincourt Your Head A Splode - Strong Bad

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

        Thanx

        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