c++ - Incrementing Progressbar continously in MFC -
c++ - Incrementing Progressbar continously in MFC -
completing execution in application have modal dialog. when clicks on button in dialog, pops modelless dialog progress bar.
i using worker thread incrementing progress bar in modelless dialog.
in parent dialog after popping modelless dialog, calling api dll , main thread busy.when main thread( parent dialog) busy, worker thread not incrementing progress bar.if main thread not busy progress bar getting incremented.
i tried sending notification main thread worker thread using postmessage , sendmessage also... after completing execution of dll api main thread updating ui.
any help appreciated.
thanks.
while main thread busy not process messages. postmessage or sendmessage worker thread has wait. solution perform busy function in worker thread, not main thread.
c++ multithreading visual-c++ mfc
Comments
Post a Comment