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 and chield Dialog

Parent and chield Dialog

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 4 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.
  • N Offline
    N Offline
    NewVC
    wrote on last edited by
    #1

    Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me

    _ T O 3 Replies Last reply
    0
    • N NewVC

      Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Use modal dialogs, from your query it appears that you are using modeless dialogs. Also you can use a flag variable to check if some other dialog is open. if that flag is true don't call the close for dialog A

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      1 Reply Last reply
      0
      • N NewVC

        Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        you have to create B telling it that A is its parent (pointer parameter to the constructor) and open it using DoModal()

        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        1 Reply Last reply
        0
        • N NewVC

          Hi All I have two dialog A and B. A dailog is running first and B is running after click button on dialog A. Now problem is that when dialog B is running and again click on button A,then one more dialog B is open. Also i want to set option if Dialog B is Open Then A Dialog cann't be close.SO How can i set these option... Plz help me

          O Offline
          O Offline
          onlyjaypatel
          wrote on last edited by
          #4

          make one member variable that store the pointer of cerated dialog B which is initialy NULL and create the dialog when its null if its not null than dont go for create it put same check in OnClose

          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