Instantiate wxIcon from a string

Vadim Zeitlin vadim at wxwindows.org
Thu Nov 2 06:31:26 PST 2006


On Thu, 02 Nov 2006 16:28:38 +0200 Peter Gordon <peter at pg-consultants.com> wrote:

PG> I have a string with the contents of a valid icon file in memory and I
PG> want to create a valid wxIcon with this string. For various reasons I
PG> cannot write the file to disk and read it from there.
PG> 
PG> How can I instantiate the wxIcon from the string?

 Use wxStringInputStream and load the icon from it passing via wxImage.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list