Can you post a sample icon that doesn't work with that code? Other things to try would be different functions or Windows SDK calls that can somehow format the icon into an acceptable bitmap, and then send it up to the canvas control. Thanks!
Jeremy L.
National Instruments