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. Dialog box

Dialog box

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

    Hi, My project has a Modal dialog box(first dialog box) 1)First dialog box consist of a button, on clicking that button another modal dialog box(second dialog box) opens. 2)First dialog box also consist of tab control which consist of two tabs.Each tab has modelless dialog box. My question is when i open the second dialog box(opens on pressing the button) the control will be with second dialog box as it is a modal dialog box but when i place it on one of the tab dialog box(the dialog size of the second dialog box is smaller than the dialog box on the tab) and a mouse click on the tab dialog box the control goes to tab dialog box,.Why?? How to avoid this. The second dialog box should have the control until i close it. I hope you people got my quesion. Thanks in advance

    D 1 Reply Last reply
    0
    • S shir_k

      Hi, My project has a Modal dialog box(first dialog box) 1)First dialog box consist of a button, on clicking that button another modal dialog box(second dialog box) opens. 2)First dialog box also consist of tab control which consist of two tabs.Each tab has modelless dialog box. My question is when i open the second dialog box(opens on pressing the button) the control will be with second dialog box as it is a modal dialog box but when i place it on one of the tab dialog box(the dialog size of the second dialog box is smaller than the dialog box on the tab) and a mouse click on the tab dialog box the control goes to tab dialog box,.Why?? How to avoid this. The second dialog box should have the control until i close it. I hope you people got my quesion. Thanks in advance

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      What is the parent/owner relationship between the first and second modal dialog boxes?


      "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      S 1 Reply Last reply
      0
      • D David Crow

        What is the parent/owner relationship between the first and second modal dialog boxes?


        "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        S Offline
        S Offline
        shir_k
        wrote on last edited by
        #3

        Thanks for reply. First dialog box is a main application(User interface for the user).second dialog box is, if the user wants to change the COM port settings like baud rate or parity he has to open second dialog box which can be opened by pressing the button on the main application.

        D 1 Reply Last reply
        0
        • S shir_k

          Thanks for reply. First dialog box is a main application(User interface for the user).second dialog box is, if the user wants to change the COM port settings like baud rate or parity he has to open second dialog box which can be opened by pressing the button on the main application.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          It matters not what they are used for. What is the parent/owner relationship between the first and second modal dialog boxes? Just because dialog A opens dialog B, that does not also imply that dialog A is the parent of dialog B, or that dialog B is owned by dialog A.


          "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          S 1 Reply Last reply
          0
          • D David Crow

            It matters not what they are used for. What is the parent/owner relationship between the first and second modal dialog boxes? Just because dialog A opens dialog B, that does not also imply that dialog A is the parent of dialog B, or that dialog B is owned by dialog A.


            "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            S Offline
            S Offline
            shir_k
            wrote on last edited by
            #5

            You are asking style of the window. Both are popup window style. I hope i have answered your question if not let me know in detail.Am not getting what does parent/owner relationship means.Even tab windows are popup style.

            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