checking loaded handlers

Vadim Zeitlin vadim at wxwidgets.org
Wed Oct 24 04:02:48 PDT 2007


On Wed, 24 Oct 2007 01:23:29 -0300 personaje <personaje at gmail.com> wrote:

p> Is there a way to check that wxInitAllImageHandlers() has been run?

 You can try checking the size of wxImage::GetHandlers() or use
FindHandler() for one of the handlers added by it. But if you really need
to know if wxInitAllImageHandlers() has been called (why?) you should just
record this in a variable in your own code -- as only it can call it, wx
never does it itself. It can also be helpful to know that it's safe to call
it twice, it won't do anything the second time as adding an already
registered handler is a NOP.

 Regards,
VZ

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





More information about the wx-users mailing list