How to change pane text of status bar from a thread in MFC?

后端 未结 3 1196
忘掉有多难
忘掉有多难 2021-01-05 16:44

I have a dialog in MFC with a CStatusBar. In a separate thread, I want to change the pane text of status bar. However MFC complains with asserts? How is it done? An example

3条回答
  •  清歌不尽
    2021-01-05 17:13

    Maybe this can help you: How to access UI elements from a thread in MFC.

    I don't code C++/MFC myself but I had experienced the similar problem in C# which is known as Cross-thread GUI update.

提交回复
热议问题