delphi - TWebbrowser 中烦人的点击声

标签 delphi

我在 Delphi 应用程序中使用 TWebbrowser 组件,我以编程方式加载其内容:

(aWebBrowser.Document as IPersistStreamInit).
                               Load(TStreamAdapter.Create(aMemoryStream))

每次加载时,组件都会产生烦人的咔哒声。可以禁用此功能吗?
TIA

最佳答案

查看 URLMON.DLL 中的 CoInternetSetFeatureEnabled 过程,如文档 here 所示。 。为您的应用启用 FEATURE_DISABLE_NAVIGATION_SOUNDS 将满足您的需要。

关于delphi - TWebbrowser 中烦人的点击声,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/613943/

相关文章:

delphi - 我可以从缓冲区 (pByte) 和大小创建 VarArray OleVariant 而不进行复制吗?

delphi - 如何在带有滚动条的控件的非客户区域内绘制自定义边框?

delphi - 将 Windows 桌面应用程序连接到远程位置

delphi - 在Delphi中的参数中传递静态字节数组

Delphi - 使用接口(interface)内的接口(interface)时,我出现内存泄漏,但不知道为什么

windows - 在 Delphi 中使用 COM 支持在 DLL 和 .EXE 之间切换

delphi - TStringList 的 addObject 方法

c# - 当作为函数参数从 Delphi 传递到 C# 时,空字符串变为 null

ios - 在 FMX.Platform.iOS 中重载方法

delphi - 如何在Windows桌面上创建文件快捷方式(*.lnk文件)?