Alternative for Postmessage and sendmessage

后端 未结 5 1881
北荒
北荒 2021-01-31 00:46

i have a program which is using several threads to execute some task. Each thread is having a bunch of task to execute. after executing one of them, each thred will call a post

5条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 01:09

    You can create a new thread for updating logs and in the log threads call TLogThread.Synchronize to update the UI controls that are in the main app thread... or just call TWorkerThread.Synchronize to update the logs from your worker threads.

提交回复
热议问题