[wx-dev] Re: png-bug
Christian Buhtz
exsudat at gmx.de
Sat May 3 01:06:37 PDT 2008
Steven Van Ingelgem schrieb:
> I just checked your "logo128" in the "controls" sample.
> Everything looks fine. This has been done with wx/53295 + VS2005Std +
> Win XP/SP2.
Ok, I cleaned and rebuild exactly the same revision.
The wxTreeCtrl problem was that I add the PNGs ass wxIcon to its
wxImageList. Adding them as wxBitmap works fine.
The logo128.png is displayed correct in the "controls" sample. But the
same file (I copied it) has a black background in my own application.
I tried to call
wxInitAllImageHandlers();
instead of
wxImage::AddHandler(new wxPNGHandler());
But it has no effect. The wxBitmap::SetMask() call hasn't an effect, too.
I am confused.
More information about the wx-dev
mailing list