cef3工具提示未显示

时间:2015-05-07 17:06:51

标签: c++ chromium-embedded

我开始学习CEF3,并且在将工具提示显示在超链接上时遇到问题。我知道我需要实现cef_display_handler::onTooltip才能实现这一点,但我不确定如何处理实现。有人可以告诉我如何显示工具提示吗?对此的任何帮助将不胜感激。

来自cef_display_handler.h

// Called when the browser is about to display a tooltip. |text| containsthe

// text that will be displayed in the tooltip. To handle the display of the

// tooltip yourself return true. Otherwise, you can optionally modify |text|

// and then return false to allow the browser to display the tooltip.
///

/*--cef(optional_param=text)--*/

virtual bool OnTooltip(CefRefPtr<CefBrowser> browser,
                     CefString& text) { return false; }

我对如何实现此方法感到困惑。我还没有用C ++或CEF创建工具提示。

是否有人可以看到我可以看到的示例实现?

更新 我已经升级到cef 3.2171.1979_windows32,当我从我的应用程序中启动浏览器时仍然没有看到工具提示。我的应用程序使用cef来显示html报告文件,这些文件包含使用自定义URL打开数据库报告的链接。这就是为什么我不能简单地使用cefclient。 libcef_dll_wrapper是否缺少某些内容以允许显示工具提示?

0 个答案:

没有答案
相关问题