开发者

Is it possible to specify an image in a wxHtmlWindow that is contained within the executable?

开发者 https://www.devze.com 2022-12-25 07:27 出处:网络
I would like my executable to be self-contained. However, the wxHtmlWindow u开发者_运维技巧ses an image and it would be nice if the image could be stored inside the executable.

I would like my executable to be self-contained. However, the wxHtmlWindow u开发者_运维技巧ses an image and it would be nice if the image could be stored inside the executable.

Can this be done, and if so how?


Yes, use memory: schema. See my code in http://mahogany.git.sourceforge.net/git/gitweb.cgi?p=mahogany/M;a=blob_plain;f=src/gui/wxMDialogs.cpp;hb=HEAD for example (just search for "memory:" there).

Don't forget to register wxMemoryFSHandler or this won't work!

0

精彩评论

暂无评论...
验证码 换一张
取 消