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. MFC Help;

MFC Help;

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
2 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.
  • B Offline
    B Offline
    Bo Hunter
    wrote on last edited by
    #1

    I have this cd burning app that I have been working on. I added a dialog to show progress along the way. Now this dialog implements a interface and these methods are called during the burn. (These methods are callbacks that windows calls duriing the burn. So surely they are called from a different thread) I added some members to represent the controls on this dialog, 2 CStatics and a CProgressCtrl. I added the DDX_Control stuff. Now I know that I am not supposed to work with a control from different threads other than the one it was created with. If that is the case how do I set the window text and the progress step from these methods? Thank You Bo Hunter

    R 1 Reply Last reply
    0
    • B Bo Hunter

      I have this cd burning app that I have been working on. I added a dialog to show progress along the way. Now this dialog implements a interface and these methods are called during the burn. (These methods are callbacks that windows calls duriing the burn. So surely they are called from a different thread) I added some members to represent the controls on this dialog, 2 CStatics and a CProgressCtrl. I added the DDX_Control stuff. Now I know that I am not supposed to work with a control from different threads other than the one it was created with. If that is the case how do I set the window text and the progress step from these methods? Thank You Bo Hunter

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Instead of executing the callback methods, you might want to consider posting messages to the dialog. The message indicates a "progress event". The dialog would query the CD burning thread for its progress, in response to the message. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

      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