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 gets hanged..

Dialog box gets hanged..

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

    Dear all, In my program we have written code to download folders from the server to the PC,When the downloading process is started my dialog box disappears.Actually we have 3 dialog boxes and all these 3 boxes are loaded once our application starts and each and every time when i want a window the corresponding window is hide and displayed using FindWindow() and ShowWindow()... What can be the problem Plz anyone help me... Kind regards anitha

    R 1 Reply Last reply
    0
    • A AnithaSubramani

      Dear all, In my program we have written code to download folders from the server to the PC,When the downloading process is started my dialog box disappears.Actually we have 3 dialog boxes and all these 3 boxes are loaded once our application starts and each and every time when i want a window the corresponding window is hide and displayed using FindWindow() and ShowWindow()... What can be the problem Plz anyone help me... Kind regards anitha

      R Offline
      R Offline
      Roger Stoltz
      wrote on last edited by
      #2

      :confused: :wtf: Read what you've written and see if you think it makes sense. The only thing clear is that you have three dialog boxes. I cannot figure out whether you want them hidden or shown and whether the use of FindWindow() is part of the problem or the solution.

      "It's supposed to be hard, otherwise anybody could do it!" - selfquote
      "High speed never compensates for wrong direction!" - unknown

      A 1 Reply Last reply
      0
      • R Roger Stoltz

        :confused: :wtf: Read what you've written and see if you think it makes sense. The only thing clear is that you have three dialog boxes. I cannot figure out whether you want them hidden or shown and whether the use of FindWindow() is part of the problem or the solution.

        "It's supposed to be hard, otherwise anybody could do it!" - selfquote
        "High speed never compensates for wrong direction!" - unknown

        A Offline
        A Offline
        AnithaSubramani
        wrote on last edited by
        #3

        we have 3 dialog boxes and all these 3 boxes are loaded once our application starts and each and every time when i want a window the corresponding window is found using FindWindow() and displayed using ShowWindow()...In one of the dialog when we click a button it starts downloading the files from the server. When it is downloading i need a progress bar to be ruuning in my dialog box. But in my code the dialog box disappears. Please help me to know what can be the problem why the dialog box disappears when the it starts downloading..

        R 1 Reply Last reply
        0
        • A AnithaSubramani

          we have 3 dialog boxes and all these 3 boxes are loaded once our application starts and each and every time when i want a window the corresponding window is found using FindWindow() and displayed using ShowWindow()...In one of the dialog when we click a button it starts downloading the files from the server. When it is downloading i need a progress bar to be ruuning in my dialog box. But in my code the dialog box disappears. Please help me to know what can be the problem why the dialog box disappears when the it starts downloading..

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          1. Why do you load all the 3 dialog boxes when your application starts? Can't you just show it when required (with DoModal()?) 2. Why are you using FindWindow() and ShowWindow()at all? Are the dialogs hidden? Or is it that all dialogs are just shown on the screen? That would be really bad. 3. Your dialog box disappears when a download starts? Can you show that relevant piece of code? Relevant code only, please.

          It is a crappy thing, but it's life -^ Carlo Pallini

          A 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            1. Why do you load all the 3 dialog boxes when your application starts? Can't you just show it when required (with DoModal()?) 2. Why are you using FindWindow() and ShowWindow()at all? Are the dialogs hidden? Or is it that all dialogs are just shown on the screen? That would be really bad. 3. Your dialog box disappears when a download starts? Can you show that relevant piece of code? Relevant code only, please.

            It is a crappy thing, but it's life -^ Carlo Pallini

            A Offline
            A Offline
            AnithaSubramani
            wrote on last edited by
            #5

            * I tried domodal() in one of my application but if i use domodal() i can change between dialog only 30 or 40 times after that it shows a message which says resource not available.

            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