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. Why GUI updation is not preferred in Worker Thread

Why GUI updation is not preferred in Worker Thread

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

    I heard that GUI updation is not preferred in Worker Thread. Does any one tell me the reason with the help of a msdn article. :((

    Ajayraj

    C E 2 Replies Last reply
    0
    • R rajajay82

      I heard that GUI updation is not preferred in Worker Thread. Does any one tell me the reason with the help of a msdn article. :((

      Ajayraj

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Have a look at this article[^] at the section called "Worker threads and the GUI II: Don't touch the GUI".

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      1 Reply Last reply
      0
      • R rajajay82

        I heard that GUI updation is not preferred in Worker Thread. Does any one tell me the reason with the help of a msdn article. :((

        Ajayraj

        E Offline
        E Offline
        Eugen Podsypalnikov
        wrote on last edited by
        #3

        It would be not possible to manage any alarm events or even the mouse click events - without the updating of a complex drawn picture (for example, with motions, blinking, transformations, Direct2D interludes...) - by a worker thread... But it is possible (with a worker thread) :)

        virtual void BeHappy() = 0;

        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