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

Modeless Dialog

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

    Hi, I want to open 2 dialogs at a time.For first one, im using domodal function. Inside the first dialog,im calling create function to open second dialog. the code is executed successfully.Is not showing any error. while running the application,its not showing the second dialog.Can anyone please tell me whether this procedure is correct? Thanks,

    modified on Thursday, January 7, 2010 2:06 AM

    T C P 3 Replies Last reply
    0
    • P Pryabu

      Hi, I want to open 2 dialogs at a time.For first one, im using domodal function. Inside the first dialog,im calling create function to open second dialog. the code is executed successfully.Is not showing any error. while running the application,its not showing the second dialog.Can anyone please tell me whether this procedure is correct? Thanks,

      modified on Thursday, January 7, 2010 2:06 AM

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      from where you invoking second dialog? if you are invoking second modeless dialog box after first one, then it not going to work as DoModal is modal call.

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
      Never mind - my own stupidity is the source of every "problem" - Mixture

      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

      P 1 Reply Last reply
      0
      • T ThatsAlok

        from where you invoking second dialog? if you are invoking second modeless dialog box after first one, then it not going to work as DoModal is modal call.

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

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

        im invoking second dialog inside Initdialog() function of first dialog.

        1 Reply Last reply
        0
        • P Pryabu

          Hi, I want to open 2 dialogs at a time.For first one, im using domodal function. Inside the first dialog,im calling create function to open second dialog. the code is executed successfully.Is not showing any error. while running the application,its not showing the second dialog.Can anyone please tell me whether this procedure is correct? Thanks,

          modified on Thursday, January 7, 2010 2:06 AM

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          Check if "visible" is true for your second dialog's resource (properties panel in resource editor), if no, then set it to true and try, if that for some reason doesn't work, then call ShowWindow(SW_SHOW) on your second dialog after creating it. Does this help?

          > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

          1 Reply Last reply
          0
          • P Pryabu

            Hi, I want to open 2 dialogs at a time.For first one, im using domodal function. Inside the first dialog,im calling create function to open second dialog. the code is executed successfully.Is not showing any error. while running the application,its not showing the second dialog.Can anyone please tell me whether this procedure is correct? Thanks,

            modified on Thursday, January 7, 2010 2:06 AM

            P Offline
            P Offline
            Parthiban
            wrote on last edited by
            #5

            Hi, How is the parent for the model less dialog?

            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