loading icon from dll

I can't find any example for loading an icon from a windows resource file
(dll) using wxBITMAP_TYPE_ICO_RESOURCE.
Can someone give me a little example?

wishmaster@sephiroth.it wrote:

I can't find any example for loading an icon from a windows resource file
(dll) using wxBITMAP_TYPE_ICO_RESOURCE.
Can someone give me a little example?

That only works if loading from the windows resources attached to the current executable, (for wxPython it would be the resources attached to the wxc extension module.) So from a Python script there is no way to use wxBITMAP_TYPE_*_RESOURCE.

In 2.5 there will be the wxIconLocation class that will let you get icons from arbitrary files like that.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!