我有一个 Delphi 2007 应用程序,它有一个带有 FindFile Common AVI 的 TAnimate 控件。当应用程序在 Windows XP 上运行时它工作得很好,但在 Windows 7 上却什么也没有出现。我听说它现在需要自己的线程,但我不确定。
有人知道如何让 TAnimate 的 Common AVI 控件在 Windows 7(或 Vista)上运行吗?
最佳答案
您必须将 ShellAnimations 单元添加到您的项目中或添加组件 TShellResources从组件选项板的 Win32 选项卡中。 (在 Windows Vista-Delphi 2007 中测试)
uses
ShellAnimations;
此单元将以下替换动画资源添加到您的可执行文件中:
- FindFolder.res
- FindFile.res
- FindComputer.res
- CopyFiles.res
- 复制文件.res
- RecycleFile.res
- EmptyRecycle.res
- 删除文件.res
再见。
关于delphi - 如何让 TAnimate 的通用 AVI 在 Vista 和 Win7 上运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1492799/