Show activity indicator while the main thread is blocked (continue)

前端 未结 3 1742
温柔的废话
温柔的废话 2021-02-04 20:35

Continue with previous question I want to be able to show some activity indicator even if the main thread is blocked. (based on this article).

Problems

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 21:08

    Again, the only threadsafe way to draw on a window is to draw from the same thread that created a window; anything else is unsafe.

    As a possible explanation why your code worked well with old Windows versions and does not work with modern versions read this The Old New Thing article.

提交回复
热议问题