有大佬说 主线程建议用MsgWaitForMultipleObjects,不要用Sleep。
然后我找到这篇文章:
《VB6环境下的多线程编程实战指南》
https://blog.csdn.net/weixin_42181686/article/details/146270672