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 dialog problem

Modal dialog problem

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

    Hi guys I want to do a Modal dialog that when do the oninitdialog, start a proces drawing a progress ctrl. But the problem is that the process starts but nothing is drawn. Any suggestion? Maybe a timer in oninitdialog that launches later the process and the progresCtrl? Best Regards Doc

    D M 2 Replies Last reply
    0
    • D doctorpi

      Hi guys I want to do a Modal dialog that when do the oninitdialog, start a proces drawing a progress ctrl. But the problem is that the process starts but nothing is drawn. Any suggestion? Maybe a timer in oninitdialog that launches later the process and the progresCtrl? Best Regards Doc

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

      doctorpi wrote: But the problem is that the process starts but nothing is drawn. You'll need to create another thread to do this work in. With only one message pump, it is too busy with the processing that paint messages are not being processed and the UI is nonresponsive. Read here.


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      1 Reply Last reply
      0
      • D doctorpi

        Hi guys I want to do a Modal dialog that when do the oninitdialog, start a proces drawing a progress ctrl. But the problem is that the process starts but nothing is drawn. Any suggestion? Maybe a timer in oninitdialog that launches later the process and the progresCtrl? Best Regards Doc

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        See the FAQ 4.3 I have a dialog that does some lengthy processing, and I need to have a Cancel button so the user can abort the processing. How do I get the Cancel button to work?[^] --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

        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