Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在图片控件中每 5 秒在运行时更改图标以向用户通知工作正在进行中吗?
其他兴趣点:
如果加载其他类型的图像对象(而不是图标),您需要发送相应的消息。有关详细信息,请参阅 msdn 中的 STM_SETICON。
计时器是一个中断,与任何其他 Windows 消息不同,因此如果您不小心,可能是线程不安全的。尽快离开定时器子程序。
希望这可以帮助。米罗