【问题标题】:Is it possible to specify an image in a wxHtmlWindow that is contained within the executable?是否可以在可执行文件中包含的 wxHtmlWindow 中指定图像?
【发布时间】:2011-02-02 14:28:48
【问题描述】:

我希望我的可执行文件是独立的。但是,wxHtmlWindow 使用图像,如果图像可以存储在可执行文件中,那就太好了。

这可以做到吗?如果可以怎么做?

【问题讨论】:

    标签: image wxwidgets embed wxhtmlwindow


    【解决方案1】:

    是的,使用memory: 架构。例如,在http://mahogany.git.sourceforge.net/git/gitweb.cgi?p=mahogany/M;a=blob_plain;f=src/gui/wxMDialogs.cpp;hb=HEAD 中查看我的代码(只需在那里搜索“memory:”)。

    不要忘记注册wxMemoryFSHandler,否则将无法使用!

    【讨论】:

      猜你喜欢
      • 2014-10-05
      • 2020-08-07
      • 1970-01-01
      • 1970-01-01
      • 2010-12-06
      • 1970-01-01
      • 2013-11-29
      • 2021-04-20
      • 1970-01-01
      相关资源
      最近更新 更多